Comments

Go supports two styles of comments to help explain your code:

Single-line Comments

Use // to comment out a single line or everything following the characters on that line.

// This is a single line comment
fmt.Println("Hello") // This part is also a comment

Multi-line Comments

Use /* ... */ to comment out a block of text.

/*
  This is a multi-line comment.
  It can span many lines and is
  useful for longer documentation.
*/