Skip to content

Instantly share code, notes, and snippets.

@wader
Last active August 1, 2021 18:32
Show Gist options
  • Save wader/6558dfad2c182bb107e9d9b60b2f56aa to your computer and use it in GitHub Desktop.
Save wader/6558dfad2c182bb107e9d9b60b2f56aa to your computer and use it in GitHub Desktop.
golang interesting internals and techniques
go run always exits with error code 1 https://github.com/golang/go/issues/13440
probably the reason it print the error code
-coverpk=./... will load all packages, even non-imported ones, causing init() to run
Default behaviour of signals on linux:
https://github.com/golang/go/blob/master/src/runtime/sigtab_linux_generic.go
AST rewrite exmaple
https://github.com/vitessio/vitess/pull/7710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment