Golang's init() function
· One min read
- automatically called once per package, the first time it's imported
- cannot rely on order of exec when importing multiple packages that have
init()functions
References
- The Go Init function on Tutorial Edge
init() functions