#development #golang #pattern #reading-list
🔗 Why you shouldn't use func main in Go
pace.dev
I love how simple Go's entry point main function is. It is where your code will start when someone runs your program.
However, main is difficult to test, and it's not clear how we access the environmental dependencies our program has, such as stdin, stdout, the command line args, the environment variables themselves, etc.
continue reading on pace.dev
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.