Golang drawer
@golang101
177
subscribers
1
photo
5.03K
links
Curated Golang news
Download Telegram
Join
Golang drawer
177 subscribers
Golang drawer
https://qvault.io/2019/09/25/the-proper-use-of-pointers-in-go-golang/
Golang drawer
https://manfred.life/golang-project-layout
Manfred Touron
Golang project layout
Context In a previous blogpost, I talked about why I always trash the V1 of my projects. At Berty, we recently decided to start a clean V2, based on everything we learned from the V1.
What works well having a monorepo being protobuf-first and generating…
Golang drawer
https://stephenafamo.com/blog/better-scheduling-in-go/
Stephenafamo
Better scheduling in Go | Stephen AfamO's Blog
In a lot of situations, we would like to be able to schedule functions in Go. While there are many current tools for doing scheduling (such as Cron)...
Golang drawer
https://dev.to/jonfriesen/mocking-dependencies-in-go-1h4d
DEV Community
Mocking dependencies in Go
Go makes obvious, non-magical dependency injection easy. Lots of new developers, or experienced...
Golang drawer
https://stepan.wtf/importing-protobuf-with-go-modules/
stepan.wtf
Importing Protobuf with Go Modules | stepan.wtf
Protocol buffers and gRPC are established standards for building modern web services. Go modules are now the default way of versioning packages in Go projects. How can you import and reuse existing .proto definitions from your versioned dependencies while…
Golang drawer
https://dasio.hashnode.dev/using-ioreaderiowriter-in-go-to-stream-data-ck0v22mvg0005xes1gp13f5pg
dasio.hashnode.dev
Using io.Reader/io.Writer in Go to stream data
Let's jump right into the task:
You have to ZIP files which are available on the cloud (eg. AWS S3 Bucket).
The first solution you can think of probably downloads each file, process it (add to ZIP), delete a file and afterwards upload final ZIP to cl...
Golang drawer
https://philpearl.github.io/post/bad_go_not_sizing_arrays/
Golang drawer
https://philpearl.github.io/post/bad_go_pointer_returns/
philpearl.github.io
Bad Go: pointer returns · Phil Pearl's Blog
Mmmm, pointy
Golang drawer
https://philpearl.github.io/post/bad_go_sprintf/
philpearl.github.io
Bad Go: frivolous Sprintf
Sprintf is not always fastf
Golang drawer
Bad Go: Slices of pointers
https://philpearl.github.io/post/bad_go_slice_of_pointers/
philpearl.github.io
Bad Go: slices of pointers · Phil Pearl's Blog
Please don't
Golang drawer
Bad Go: guessing
https://philpearl.github.io/post/bad_go_guessing/
philpearl.github.io
Bad Go: guessing · Phil Pearl's Blog
Just write a benchmark
Golang drawer
https://keepingitclassless.net/2019/09/kicking-the-tires-with-the-nats-go-client/
Matt Oswalt
Kicking the Tires With the NATS Go Client
I am doing some prototyping for a project and part of this includes becoming more familiar with the NATS project, including its Go client (since all of the components in my project that will be talking to NATS are written in Go). In short, I have a bunch…
Golang drawer
https://medium.com/@petomalina/dealing-with-optional-parameters-in-go-9780f9bfbd1d
Medium
Dealing with Optional Parameters in Go
Legend says Go does not support optional parameters or method overloading, as it may be confusing or fragile in practice. However, there…
Golang drawer
https://dkvist.com/posts/findind-dead-links-with-golang/
Finding dead links in a Website with Go
Finding dead links in a Website with Go :: Dkvist — Gopher & Ukulelist
First things first The idea behind this article comes from my experience building Kelsier, which idea itself comes from this article.
The code that I’m going to show below is very likely to have and will have aspects that can be improved. So please, if you…
Golang drawer
https://research.swtch.com/proposals-experiment
Golang drawer
https://go.googlesource.com/proposal/+/refs/heads/master/design/34481-opencoded-defers.md
Golang drawer
https://medium.com/@riteeksrivastava/a-complete-journey-with-goroutines-8472630c7f5c
Medium
A complete journey with Goroutines
When we want things to be done concurrently in Golang, we use Goroutines.
Golang drawer
https://github.com/mvdan/xurls
GitHub
GitHub - mvdan/xurls: Extract urls from text
Extract urls from text. Contribute to mvdan/xurls development by creating an account on GitHub.
Golang drawer
https://github.com/qmuntal/stateless
GitHub
GitHub - qmuntal/stateless: Go library for creating finite state machines
Go library for creating finite state machines. Contribute to qmuntal/stateless development by creating an account on GitHub.
Golang drawer
https://github.com/rogchap/v8go
GitHub
GitHub - rogchap/v8go: Execute JavaScript from Go
Execute JavaScript from Go. Contribute to rogchap/v8go development by creating an account on GitHub.