• 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 autoscaler - Simple and efficient autoscalling solution for K8S by bumkom 57 days ago ▼

    https://github.com/chieund/golang_learning

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

    https://github.com/chieund/golang_learning

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

    https://github.com/chieund/golang_learning

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

    I am interested

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

    Hi i am interested for the job opportunity.

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

    Helpful! Thanks for sharing

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

    Heyyy

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

    . Could you please upvote this comment?

  • ▲ comment posted on Inspect your `context.Context` values by hey 176 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 176 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 176 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 176 days ago ▼

    I starred. Could you please upvote this comment?

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

    Hello I don't get it

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

    Nİce very nice I loving it

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

    Nice I like the video

  • ▲ comment posted on Contributor Guidelines by Danielle 183 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 215 days ago ▼

    Thank you for this.

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

    Would you like to help out?

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

    hello all - glad to join GolangNews!

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

    Certainly useful. Thanks

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

    That should definitely help with performance!

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

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

  • ▲ comment posted on Using Golang stdlib interfaces by shoggothe 224 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 231 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 249 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 252 days ago ▼

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

  • ▲ comment posted on Contributor Guidelines by drutjes 270 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 271 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 271 days ago ▼

    Hi all

  • ▲ comment posted on Excelize 2.6.0 Released – Go language API for spreadsheet (Excel) document by jypelle 287 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 288 days ago ▼

    This is a really helpful go lib.

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

    This looks great! Thanks for posting. 

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

    good stuff

  • ▲ comment posted on packagemain #23: Fuzz Testing in Go by Nikhil Rangpariya 323 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 324 days ago ▼

    Thank You For Sharing.

  • ▲ comment posted on Go does not need a java style gc by samber 331 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 331 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 331 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 354 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 357 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 357 days ago ▼

    Good catch ! Fixed, thank you.

  • ▲ comment posted on Tinygo - good things come in small packages by sultantoto88 365 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 381 days ago ▼

    super cool

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

    awesome

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

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

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

    Hey, first time commenting here

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

    awesome

  • ▲ comment posted on Deploy a Go API to AWS Lambda and API Gateway by yuriizinets 429 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 331 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 413 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 447 days ago ▼

    Valuable information for golang developers

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

    niice

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

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

  • ▲ comment posted on Show: Lightmeter 1.9 seeding the network by gosamples 479 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 504 days ago ▼

    Nice

  • ▲ comment posted on golang development company by ayeshaaroy 504 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 511 days ago ▼

    Please avoid posting jobs without any details.

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

    This page seems to be blank?

  • ▲ comment posted on Common Anti-Patterns in Go Web Applications by tomf 533 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 533 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 567 days ago ▼

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

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

    amazing!

  • ▲ comment posted on Show: json iterator - so far fastest by ericjordan 610 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 610 days ago ▼

    Is that ok for remote from China?

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

    US and Canada only unfortunately. 

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

    what's advantages over x/ratelimit?

  • ▲ comment posted on Show: drop-in replacement for encoding/json by ericjordan 610 days ago ▼

    I've used it for a while, it's awesome!

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

    I'm wondering how to get points.

  • ▲ comment posted on Tiny go - a go compiler for small spaces by Tobias Theel 611 days ago ▼

    As of today TinyGo supports more than 60 different boards!

    Also the list of supported devices in the drivers repository is fast growing. Find them here: https://github.com/tinygo-org/drivers

  • ▲ comment posted on Video: Deep dive into Go's build cache by Tobias Theel 611 days ago ▼

    Thanks for sharing. Is the build caching behavior still the same today?

  • ▲ comment posted on Video: Writing testable Go code by Tobias Theel 611 days ago ▼

    Nicely explained.

    Most important takeaways (for me) are: Use table driven tests AND use interfaces, so you can mock stuff :)

  • ▲ comment posted on Video: Go (Golang) Debugging with Delve by Tobias Theel 611 days ago ▼

    Nicely explained! This also had some new insights for me, even though i'm working with go for some years now :)

  • ▲ comment posted on My Go Executable Files Are Still Large by kenny 645 days ago ▼

    This has been retracted because they compared different versions of their code so the binary comparisons were wrong. link to a breakdown here

  • ▲ comment posted on Book: Practical Go Lessons by Siddhant 668 days ago ▼

    A truly practical approach to learning Go

  • ▲ comment posted on box - 📦 A command-line utility for creating Linux containers, sandboxing a processes by Siddhant 668 days ago ▼

    Interesting

  • ▲ comment posted on elsa - ❄️ Elsa is a minimal, fast and secure runtime for Javascript and Typescript written in Go by Siddhant 668 days ago ▼

    Really cool.

  • ▲ comment posted on The life of a go module by Siddhant 668 days ago ▼

    A great deep dive into the internals. Thanks for sharing :)

  • ▲ comment posted on The life of a go module by kenny 667 days ago ▼

    Thanks. 

  • ▲ comment posted on fastcache - a thread-safe in-memory cache for big number of entries in Go by 0x13a 678 days ago ▼

    nice - didn't know about this - i am using bigcache https://github.com/allegro/bigcache as drop in replacement instead of redis in my go app - i shall give this a try

  • ▲ comment posted on Contributor Guidelines by yulis 682 days ago ▼

    Hi, How one can earn some points to be able to post interesting golang project?

  • ▲ comment posted on Cache Slow Database Queries by yulis 682 days ago ▼

    Nice tool.

  • ▲ comment posted on Hiring: Software engineer at Tesla by yulis 683 days ago ▼

    It is relevant to Israel? We have now a Tesla sales office here.

  • ▲ comment posted on Video: Go (Golang) Debugging with Delve by yulis 683 days ago ▼

    Great video!

  • ▲ comment posted on netaddr.IP - a new IP address type for Go by abrander 685 days ago ▼

    This has been one of the most frustrating things about developing Go network code. IP addresses are a mess. This is interesting.

  • ▲ comment posted on netaddr.IP - a new IP address type for Go by kenny 680 days ago ▼

    Yes and written by some of the people involved in the original net package. Brad used to be one of the maintainers of net/http and net packages in go. I'm glad they are so conservative about changing the standard library though, even if it does mean warts like this persist.  

  • ▲ comment posted on Cache Slow Database Queries by kenny 687 days ago ▼

    I've edited the title to the one from the repo to make this more descriptive. 

  • ▲ comment posted on elsa - ❄️ Elsa is a minimal, fast and secure runtime for Javascript and Typescript written in Go by Kate Packard 704 days ago ▼

    Looks good!

  • ▲ comment posted on Blockchain in banking and finance company by devanshisehgal 722 days ago ▼

    Our crypto banking software development solution provides all the necessary banking functions that your customers expect from their core banking platform. It is designed to handle all your customers’ needs with secure API, intuitive front-end, and banking modules. To get complete information, visit our website today and get a free white label software demo.

  • ▲ comment posted on Show: Vibrant #graphics #ui by devanshisehgal 722 days ago ▼

    nice post

  • ▲ comment posted on Contributor Guidelines by devanshisehgal 722 days ago ▼

    very nice blog

  • ▲ comment posted on Video: Understanding Allocations: the Stack and the Heap by Priyansh Shah 722 days ago ▼

    Thanks for sharing.

  • ▲ comment posted on 🚀 fgprof is a sampling Go profiler for On-CPU as well as Off-CPU (e.g. I/O) time by Priyansh Shah 722 days ago ▼

    Very well and helpful. Thanks

  • ▲ comment posted on litestream - Streaming S3 replication for SQLite. by Priyansh Shah 722 days ago ▼

    Very well and helpful. Thanks

  • ▲ comment posted on Embedding files into go executables at runtime by amnonbc 749 days ago ▼

    Go 1.16 (which is in RC this month) does embedding natively.

  • ▲ comment posted on Show: Statistics Package #data by Santosh 779 days ago ▼

    A nice article.

  • ▲ comment posted on Go developers opinion on Donald J. Trump + entrepreneurship by Koen Roevens 785 days ago ▼

    In one word: spam. The article is absolutely not related with Golang or Go developers.

  • ▲ comment posted on Go developers opinion on Donald J. Trump the loser by kenny 782 days ago ▼

    Agreed, flagged a little late I'm afraid


  • ▲ comment posted on Combining DDD, CQRS, and Clean Architecture by refactoring a Go project by kenny 797 days ago ▼

    The tricky bit here is picking the right abstractions, there's nothing worse than the wrong abstraction that would take too much work to remove. 

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. .