The Go comments are not executed by the compiler and interpreter. The comments are used to provide information or explanation about the method, variable, class or any statement. It can also be used to hide program code for specific time.
Go Single Line Comment
The double forward slash "//" is used for the single-line comment.
Go Single Line Comment Example:
Go Multi Line Comment
A multi-line or block-comment starts with /* and ends with */. Here, nesting is not allowed.
Go Multi Line Comment Example: