Go

Project structure

func main

func main() {
  if err := run(os.Args, os.Stdout); err != nil {
    // ...
  }
}

func run(args []string, stdout io.Writer) error {
  // ...
}