What are the characteristics of idiomatic Go code?

By: | Post date: March 10, 2017 | Comments: No Comments
Posted in categories: Information Technology

Just to get the ball rolling:

  • Short variable names
  • Error checking routines (the !err testing gets prolix quickly)
  • Never use a var when you can use a :=
  • defer is your friend

Leave a Reply

%d bloggers like this: