• Golang News, the latest news about the Go programming language

    Golang News The latest news about Go programming
  • GN
  • Golang News
  • Code
  • Videos
  • Jobs
  • Events
  • Books
  • Casts
  • New
  • Show
  • Upvoted
  • Talk
  • Sign up
  • Log in
  • ▲ comment posted on A new simple, low-overhead circuit breaker library by Matheus Mina 37 days ago ▼

    Nice!

  • ▲ comment posted on Creating an API with authentication using Encore.go by Matheus Mina 37 days ago ▼

    Cool post!

  • ▲ comment posted on First impressions with the Turso database by Matheus Mina 37 days ago ▼

    Really nice post!

  • ▲ comment posted on Hiring Senior Fullstack Engineer | Remote (Brazil) | A new challenge awaits! by Fabio Chapola 62 days ago ▼

    Accepting candidates from Argentina too :)

  • ▲ comment posted on Trampled-over Go Devs find Donald J. Trump inspirational by leobm 92 days ago ▼

    just a load of rubbish that I have to read...

  • ▲ comment posted on boilerplate loads secrets from multiple sources, like AWS Secrets Manager, Hashicorp Vault, etc. by lang 213 days ago ▼

    hello

  • ▲ comment posted on Go state machine patterns by Fabio Chapola 251 days ago ▼

    Very informative, John Doak!

  • ▲ comment posted on Arrays in Golang by Fabio Chapola 257 days ago ▼

    Awesome!

  • ▲ comment posted on Contributor Guidelines by Fabio Chapola 257 days ago ▼

    Hi everyone!

    How to earn points?

  • ▲ comment posted on Resilience in communication between microservices using the failsafe-go lib by Fabio Chapola 257 days ago ▼

    Great article!

  • ▲ comment posted on Video: Error Handling in Go by Fabio Chapola 257 days ago ▼

    Very informative! Thank you for sharing it.

  • ▲ comment posted on Video: So you think you know Go? by Fabio Chapola 257 days ago ▼

    Awesome video!

  • ▲ comment posted on Go state machine patterns by cinar 335 days ago ▼

    Thank you for the article!

  • ▲ comment posted on Contributor Guidelines by vovan 352 days ago ▼

    I can't create a post so I'll leave this here

    https://github.com/componego/componego - the most flexible component-oriented framework for GoLang applications.

  • ▲ comment posted on Running WebAssembly code in Go by cinar 375 days ago ▼

    Thank you this was very helpful!

  • ▲ comment posted on Contributor Guidelines by dextercodo 416 days ago ▼

    How to earn points? Also, up vote button does nothing 

  • ▲ comment posted on Using test helpers in Go by Harendra 439 days ago ▼

    Thank you for sharing. It was helpful.

  • ▲ comment posted on Using test helpers in Go by lang 213 days ago ▼

    hello

  • ▲ comment posted on Show: Golang News – news for Gophers by Harendra 451 days ago ▼

    Hi golang news...

  • ▲ comment posted on Mistakes in go json unmarshalling by Shahab 465 days ago ▼

    Good points were mentioned.

  • ▲ comment posted on 📖 100 Go Mistakes: Released! by Shahab 465 days ago ▼

    Good book with good points.

  • ▲ comment posted on Golang - Getting Started by Sid Maestre 606 days ago ▼

    Thanks for the easy to follow getting started for Golang.

    I did find an error in the first blog post when following the steps on a Mac.

    You have the command cd $HOME/go && mkdir test - This creates the new directory, but does not place the developer in the "test" directory which means those following along will likely create test.go in the "go" directory and not the test dir which is where you need to be in order to follow the rest of the steps as written.

    Looking forward to the rest of the series.

  • ▲ comment posted on 📖 100 Go Mistakes: Released! by student_b 707 days ago ▼

    Excelent book!

  • ▲ comment posted on sqs-to-sns: an utility to forward messages from AWS SQS Queues to AWS SNS Topics by wig 714 days ago ▼

    Pretty sure you can set up aws to forward sqs to sns and have if then fan-out? I suppose this was for a specific use case?

  • ▲ comment posted on 📖 100 Go Mistakes: Released! by wig 714 days ago ▼

    One of the big go gotchas is redeclaring a variable within a loop when using go routines/errgroups (https://github.com/golang/go/discussions/56010 / A decade of experience shows the cost of the current semantics).

    Didn't seem to find it, but that's always a fun one.

  • ▲ comment posted on Reduce Go Binary Size by wig 714 days ago ▼

    Awesome! Recently started using sqlite <> cgo and that's resulted in a fairly sizeable binary. Unsure if this will help much, but one to try out.

  • ▲ comment posted on gateboard provides autodiscovery for API IDs in AWS API Gateway private APIs. by Francisco Solano 714 days ago ▼

    Zmzmzkzjzku

  • ▲ comment posted on Reduce Go Binary Size by mmueller2012 736 days ago ▼

    Another good tip to reduce binary size is to check if all the imports used are really needed. Just using a constant from a package also pulls in all its code. It would be great if Go could do some link time optimization to remove all unused parts of packages during compilation.

  • ▲ comment posted on Convert HEIC to JPG in Go by mmueller2012 736 days ago ▼

    It may be worth noting that HEIF supports some features not available in JPEG, such as transparency or 10-bit color support. Therefore, the conversion may be even more lossy than just re-encoding the image data.

  • ▲ comment posted on Show: taker - async.js magic for Golang #utils by Hilla Hillo 772 days ago ▼

    hjhgfhffm jkh khl hilh ilkh il hli

  • ▲ comment posted on autoscaler - Simple and efficient autoscalling solution for K8S by bumkom 893 days ago ▼

    https://github.com/chieund/golang_learning

  • ▲ comment posted on autoscaler - Simple and efficient autoscalling solution for K8S by bumkom 893 days ago ▼

    https://github.com/chieund/golang_learning

  • ▲ comment posted on Go to use pdqsort instead of quicksort by bumkom 893 days ago ▼

    https://github.com/chieund/golang_learning

  • ▲ comment posted on Hiring: Junior DevOps Engineer ( #golang #remote ) by Maxxii 910 days ago ▼

    I am interested

  • ▲ comment posted on Hiring: Golang Developer #remote by Maxxii 910 days ago ▼

    Hi i am interested for the job opportunity.

  • ▲ comment posted on Inspect your `context.Context` values by Tomasz Sobota 1000 days ago ▼

    Helpful! Thanks for sharing

  • ▲ comment posted on Code: New version of opinionated Ansible role to install Golang by hey 1012 days ago ▼

    Heyyy

  • ▲ comment posted on Cast: Dep, Cross-platform, and Getting Started with Carolyn Van Slyck #gotime by hey 1012 days ago ▼

    . Could you please upvote this comment?

  • ▲ comment posted on Inspect your `context.Context` values by hey 1012 days ago ▼

    I stared. Could you please upvote this comment?

  • ▲ comment posted on capture any webpage as png, jpeg, pdf and html via http api or cli interface by hey 1012 days ago ▼

    I stared. Could you please upvote this comment?

  • ▲ comment posted on Code: New version of opinionated Ansible role to install Golang by hey 1012 days ago ▼

    I stared. Could you please upvote this comment?

  • ▲ comment posted on Code: New version of opinionated Ansible role to install Golang by hey 1012 days ago ▼

    I starred. Could you please upvote this comment?

  • ▲ comment posted on a very simple html scraper using css & jQuery by Ian Bauer 1012 days ago ▼

    Hello I don't get it

  • ▲ comment posted on Event: Talks from Golang UK 2015 #london by Ian Bauer 1012 days ago ▼

    Nİce very nice I loving it

  • ▲ comment posted on Video: So you think you know Go? by Ian Bauer 1012 days ago ▼

    Nice I like the video

  • ▲ comment posted on Contributor Guidelines by Danielle 1018 days ago ▼

    Can I post a open Golang job here?

  • ▲ comment posted on Go1.18 PR's welcome from students: Make sync.Pool generics compatible by Kasia Hoffman 1050 days ago ▼

    Thank you for this.

  • ▲ comment posted on Go1.18 PR's welcome from students: Make sync.Pool generics compatible by pj 1050 days ago ▼

    Would you like to help out?

  • ▲ comment posted on Contributor Guidelines by Kasia Hoffman 1050 days ago ▼

    hello all - glad to join GolangNews!

  • ▲ comment posted on Video: Go embed draft design by Kasia Hoffman 1050 days ago ▼

    Certainly useful. Thanks

  • ▲ comment posted on zerolog - Zero Allocation JSON Logger by Lucy Gibson 1056 days ago ▼

    That should definitely help with performance!

  • ▲ comment posted on Go to use pdqsort instead of quicksort by Lucy Gibson 1056 days ago ▼

    I found this article while trying to implement quicksort, super interesting!

  • ▲ comment posted on Using Golang stdlib interfaces by shoggothe 1059 days ago ▼

    // try to avoid this pattern

    What to avoid, why to avoid? No explanation at all! In the end it's perfectly fine to ask for environment variables. Just don't do it every time.

    I guess @jot thinks os.Getenv is called all the time here and she/he could be right.

    Or @jot is talking about something completely different, nobody knows.

    Saying to avoid something without explanation isn't very helpful. All I could do was guessing.

  • ▲ comment posted on Using Golang stdlib interfaces by jot 1067 days ago ▼

    Very nice. stdlib, one of those strong features Go is built upon. But please do not use these kind of snippets in code:

    if os.Getenv('ENV') == "prod" // try to avoid this pattern

    Even in examples. People tend to use what they see, especially in well written articles such as yours.

  • ▲ comment posted on Run any command with a .env file for environment by Munchozen 1085 days ago ▼

    Ok but godotenv is already able to do that. It can be used as a library and an executable godotenv -f /some/path/to/.env some_command with some args". I missed something ?

    EDIT: Ok I understand the use case. It's to export vars from an env file. Sorry, I missed the point :)

  • ▲ comment posted on Show: Launched Golang Job and Resume Board on Product Hunt by golangch 1087 days ago ▼

    Direct Link to my Golang Jobs Board: https://golangjob.xyz

  • ▲ comment posted on Contributor Guidelines by drutjes 1106 days ago ▼

    Hello how do I get registered, want to post a blog link of mine (using go) https://blog.rutjes.dev/2022/04/cloud-cost-savings-using-hybrid_15.html

  • ▲ comment posted on Contributor Guidelines by drutjes 1106 days ago ▼

    Would love to submit a blog : https://blog.rutjes.dev/2022/04/cloud-cost-savings-using-hybrid_15.html

  • ▲ comment posted on Contributor Guidelines by drutjes 1106 days ago ▼

    Hi all

  • ▲ comment posted on Excelize 2.6.0 Released – Go language API for spreadsheet (Excel) document by jypelle 1123 days ago ▼

    Best library to read xlsx in go. Too bad there is no equivalent to read xls

  • ▲ comment posted on lancet - a comprehensive, efficient, and reusable go util function library by golancet 1124 days ago ▼

    This is a really helpful go lib.

  • ▲ comment posted on Profile photos, privacy, and social media by kenny 1126 days ago ▼

    This looks great! Thanks for posting. 

  • ▲ comment posted on Video: Using generics in Go by _raz 1145 days ago ▼

    good stuff

  • ▲ comment posted on packagemain #23: Fuzz Testing in Go by Nikhil Rangpariya 1159 days ago ▼

    Really nice post. We are thankful to you for sharing it.

  • ▲ comment posted on Templatizer - A real templates engine to create dynamic repositories by Nikhil Rangpariya 1160 days ago ▼

    Thank You For Sharing.

  • ▲ comment posted on Go does not need a java style gc by samber 1167 days ago ▼

    In some case, customizing GC is nice.

    Easy with JVM, not possible with Go.

    Example: do not free memory in serverless function, in order to prevent GC pause.

  • ▲ comment posted on packagemain #23: Fuzz Testing in Go by samber 1167 days ago ▼

    Very nice to see Fuzz testing in the standard library.

    No more third party tools needed! \o/

  • ▲ comment posted on Go version performance by samber 1167 days ago ▼

    Looking for a benchmark for generics vs reflection !

  • ▲ comment posted on Video: 43rd Gofrm Meetup - Reduce system complexity with Data-Oriented programming by annakawi 1190 days ago ▼

    This talk by Yehonathan Sharvit is about the principles of Data-Oriented programming and how to reduce the complexity of software. As the talk is not focused on Go, the video is an interactive session between our speaker and the #gofrm community.

    Data-Oriented programming is a paradigm that aims at reducing the complexity of software systems and making the development experience more productive. Data-Oriented programming draws a clear separation between code and data. It treats data as a value that is manipulated by general-purpose functions. In this talk, we illustrate the principles of Data-Oriented programming in the context of a software production system. After attending this talk, you will be able to apply Data-Oriented programming principles in your preferred programming language, whether it's Object-Oriented or Functional, and reduce the complexity of the systems you build.

    ➡️ Yehonathan Sharvit ⬅️ (https://twitter.com/viebel) has been working as a software engineer since 2000, programming with C++, Java, Ruby, JavaScript, Clojure and ClojureScript. He currently works as a software architect at Cycognito, building software infrastructures for high scale data pipelines. He shares insights about software at https://blog.klipse.tech/, he writes technical books, he speaks at conferences and leads Clojure workshops around the world. He is the author of Data-Oriented programming, published by Manning. Yehonathan is passionate about making interesting things easy to understand.

    ➡️ Learn more about Yehonathan's DOP challenge: https://blog.klipse.tech/dop/2021/04/01/dop-challenges.html ⬅️

    📘 If you want to order Yenothans book Data-Oriented Programming: https://livebook.manning.com/book/data-oriented-programming/welcome/v-14/, you can use our 35% discount code: mtpffmgo21. 📘

    00:00 Introduction Yehonathan Sharvit

    06:18 What is complexity? 😰 & Information systems

    09:16 Principles of Data-Oriented programming

    14:10 What makes a software system complex?

    17:36 Principle #1: Separate Code from Data

    27:55 Principle #2: Represent Data with generic data structures

    39:25 Data is represented as data

    42:03 Principle #3: Do not mutate Data

    45:14 Immutability in practice (native data structures)

    46:54 What about data validation? & Data validation

    55:30 A brief history of Data-Oriented programming

    57:36 Summary

    58:40 DOP challenge

  • ▲ comment posted on The Go 1.18 generics landscape by Antoine Hugueney 1193 days ago ▼

    A small copy-paste typo can be found at end of slide §6.1 Generic Keys and Values functions from x/exp/maps.

    Values was mistyped Keys:

    for i := 0; i < 5; i++ {

    fmt.Printf("Values: %#v\n", Values(m))

    }

  • ▲ comment posted on The Go 1.18 generics landscape by FGM 1192 days ago ▼

    Good catch ! Fixed, thank you.

  • ▲ comment posted on Tinygo - good things come in small packages by sultantoto88 1201 days ago ▼

    https://participer.lausanne.ch/profiles/sultantoto88/activity

    https://www.openrec.tv/user/a3h0ewd2gr4nj8zmamnl

    https://participa.reus.cat/profiles/sultantoto88/activity

    https://cyprus.com/author/sultantoto88/

    https://coub.com/sultantoto88

    https://etats-generaux-du-numerique.education.gouv.fr/profiles/sultantoto88/activity

  • ▲ comment posted on Go does not need a java style gc by marcin-janas 1216 days ago ▼

    super cool

  • ▲ comment posted on Hey linker, can you spare a meg? by marcin-janas 1216 days ago ▼

    awesome

  • ▲ comment posted on Exploiting a turing complete image format by kenny 1244 days ago ▼

    Not strictly go related but I thought it was really interesting. 

  • ▲ comment posted on Contributor Guidelines by mconintet 1258 days ago ▼

    Hey, first time commenting here

  • ▲ comment posted on Faster time parsing by mconintet 1258 days ago ▼

    awesome

  • ▲ comment posted on Deploy a Go API to AWS Lambda and API Gateway by yuriizinets 1264 days ago ▼

    Searching for a ways to integrate Go WASM with Cloudflare workers. Maybe you have some ideas or start points?

  • ▲ comment posted on Deploy a Go API to AWS Lambda and API Gateway by samber 1166 days ago ▼

    Wasmer works well, but i never tried with Cloudflare workers

  • ▲ comment posted on Deploy a Go API to AWS Lambda and API Gateway by Antonio 1248 days ago ▼

    Sorry for the late reply, I didn't get any notification about your comment.

    No, I have never worked with WASM or Cloudflare, sorry :/

  • ▲ comment posted on Video: Using generics in Go by parvez 1283 days ago ▼

    Valuable information for golang developers

  • ▲ comment posted on Video: Boyer-Moore String Search In Go by parvez 1283 days ago ▼

    niice

  • ▲ comment posted on Trojan source attacks by kenny 1288 days ago ▼

    Also of interest https://mobile.twitter.com/FiloSottile/status/1455260886910783501

  • ▲ comment posted on Show: Lightmeter 1.9 seeding the network by gosamples 1314 days ago ▼

    Interesting project. Can't wait to see what it will look like in a few months

  • ▲ comment posted on fbox - an easy to use and maintain distributed file system written in Go using Reed Solomon Erasure by ayeshaaroy 1340 days ago ▼

    Nice

  • ▲ comment posted on golang development company by ayeshaaroy 1340 days ago ▼

    iPrism Technologies is a global technology and process driven software, web and mobile app development company offering customer centric solutions with knowledge and experience of the entire IT lifecycle, we help enterprises streamline core IT processes and augment their competitive advantage.

  • ▲ comment posted on Hiring: Senior Software Engineer (Go) - 100% Remote, East Canada Time Zones by kenny 1347 days ago ▼

    Please avoid posting jobs without any details.

  • ▲ comment posted on Hiring: Senior Software Engineer (Go) - UK Sponsorship by tomf 1349 days ago ▼

    This page seems to be blank?

  • ▲ comment posted on Common Anti-Patterns in Go Web Applications by tomf 1368 days ago ▼
    Not sure I agree with most of this, but it's interesting to see another's approach to dealing with complexity.

    The article correctly identifies complexity as the biggest problem with writing complex long-lived web applications, but then presents a series of ad-hoc solutions to specific problems (problems caused by the structure they have chosen) as the best answer. It would probably be better titled 'Things I learned writing go' or something similar, rather than attempting to frame different decisions trade/offs as anti-patterns.

    To take one example, having one user model is good in that it is easier to maintain and less complex to think about, but the author advocates having a write model and an api model - in some circumstances that might be useful (where there are many private fields which must never leak to the view or require processing before presentation), but most of the time it's overkill and needless complexity.

  • ▲ comment posted on Common Anti-Patterns in Go Web Applications by gosamples 1369 days ago ▼

    Super cool, these guys make great articles about making clean web applications in Go

  • ▲ comment posted on fbox - an easy to use and maintain distributed file system written in Go using Reed Solomon Erasure by kenny 1403 days ago ▼

    404 I think this is the new url https://git.mills.io/prologic/fbox

  • ▲ comment posted on Show: goroutine executor by ericjordan 1443 days ago ▼

    amazing!

  • ▲ comment posted on Show: json iterator - so far fastest by ericjordan 1445 days ago ▼

    agree! I used it in my project go-stash, and it's much faster than encoding/json.

  • ▲ comment posted on Hiring: Windows Software Developer @Tailscale full time #usa #remote by ericjordan 1445 days ago ▼

    Is that ok for remote from China?

  • ▲ comment posted on Hiring: Windows Software Developer @Tailscale full time #usa #remote by kenny 1445 days ago ▼

    US and Canada only unfortunately. 

  • ▲ comment posted on rate-limit - Very simple rate limiter for HTTP requests #web by ericjordan 1445 days ago ▼

    what's advantages over x/ratelimit?

Twitter | Source on Github | Made with Fragmenta | Bookmarklet (drag to bookmarks)

This site uses Go, hosted on a $5 Ubunutu instance on Digital Ocean. The golangnews.com domain was kindly donated by @Unknwon. .