Gophers often mistakenly put a -u in 'go get -u foo', when they would have been better off with just 'go get foo'.
'go get foo' says to upgrade foo itself. It's shorthand for 'go get foo@upgrade'
'go get -u foo' says to *also* upgrade all the direct and indirect deps of foo.
You never need to look at go.sum.
go.mod has everything you need.
Gophers often mistakenly put a -u in 'go get -u foo', when they would have been better off with just 'go get foo'.
'go get foo' says to upgrade foo itself. It's shorthand for 'go get foo@upgrade'
'go get -u foo' says to *also* upgrade all the direct and indirect deps of foo.
#golang
#golang
New blog post!
gaultier.github.io/blog/observe...
#golang #dtrace #sql
New blog post!
gaultier.github.io/blog/observe...
#golang #dtrace #sql
gaultier.github.io/blog/an_opti...
#golang #dtrace #optimization #debugging
gaultier.github.io/blog/an_opti...
#golang #dtrace #optimization #debugging
sigpod.dev/6
sigpod.dev/6
go list -deps -f '{{$dir := .Dir}}{{range .GoFiles}}{{$dir}}/{{.}} {{end}}' | xargs rg foo.Bar
go list -deps -f '{{$dir := .Dir}}{{range .GoFiles}}{{$dir}}/{{.}} {{end}}' | xargs rg foo.Bar
Not all bugs can easily be reproduced. Sometimes, all you have is a core dump. I had trouble figuring out how to save byte slice contents from memory into a file for further analysis with delve…
michael.stapelberg.ch/posts/2024-1...
Not all bugs can easily be reproduced. Sometimes, all you have is a core dump. I had trouble figuring out how to save byte slice contents from memory into a file for further analysis with delve…
michael.stapelberg.ch/posts/2024-1...