Comment style

Go uses two different comment forms as any C-based languages. The following paragraph is taken from the Go language specification [1].

Comments serve as program documentation. There are two forms:

Line comments start with the character sequence // and stop at the end of the line. General comments start with the character sequence / and stop with the first subsequent character sequence /. A comment cannot start inside a rune or string literal, or inside a comment. A general comment containing no newlines acts like a space. Any other comment acts like a newline.

An example code is shown below:

// this is a comment
/* This is commend as well */

[1] https://golang.org/ref/spec#Comments