Today I Learned

2024/04/07

go

That any function named func init(){ ... } runs on load of a module. See https://go.dev/ref/spec#Package_initialization. See also https://www.digitalocean.com/community/tutorials/understanding-init-in-go.