5 Tips for Writing Idiomatic Code in Golang - Part 2

In this episode I share with you 5 tips for writing idiomatic code in Go! Let’s get into it: ■ Context should be the first parameter ■ Return early ■ Avoid the init() function ■ Comments are for machines and humans ■ Avoid unnecessary functions == Relevant links ■ 5 Tips for Writing Idiomatic Code in Golang - Part 1: ■ Example: == All Go/Golang Playlists ■ Building Microservices in Go/Golang: ■ Go/Golang Tools and Packages: ■ Learning Concurrency Patterns in Go/Golang: ■ Learning Go/Golang : ■ Learning Relational Databases in Go/Golang:
Back to Top