2 ms·
> I really prefer environments where you could start with main() and figure out the behavior from there This is one property of Go that I really like. Because
by bheadmaster 4y ago
> I really prefer environments where you could start with main() and figure out the behavior from there
This is one property of Go that I really like. Because of lack of constructors/destructors/magic functions and all that jazz, the only functions executed in a Go program are functions explicitly called through main().
- noisem4ker 4y agoWatch out for init() [1]. Apart from that, however, I agree about the general lack of magic in Go. [1] https://go.dev/ref/spec#Package_initialization https://go.dev/ref/spec#Package_initialization