Golang: Comment
Line Comment
Line comment start with 2 slash to end of line
// line comment
Block Comment
Multi-line comment
start with
/*
and end with
*/
.
Like this
/* Block Comment.
Can be multiple lines.
Cannot be nested.
*/
Comment Example
package main import "fmt" func main() { // this is a comment fmt.Println(3) /* this is a block comment can contain multiple lines cannot be nested */ }