Skip to main content

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