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

  • March 2017
    M T W T F S S
    « Feb   Apr »
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Subscribe to Blog via Email

    Join 289 other subscribers

%d bloggers like this: