uber-go / guide

The Uber Go Style Guide.
Apache License 2.0
15.91k stars 1.72k forks source link

exit-once: Clarify that `run()` ins't prescriptive #190

Closed abhinav closed 1 year ago

abhinav commented 1 year ago

Clarify that the example of using run() and log.Fatal isn't intended to be prescriptive.

Provide samples of using os.Exit directly, using different exit codes, and clarify that there's flexibility here on how everything is set up.

Refs #189