Go Programming Language Cookbook/Incrementing a counter

Incrementing a counter edit

  i += 1;  /* i = i + 1;  */
  i++;     /* same result */