Golang: Comment
Line Comment
Line comment start with 2 slash to end of line
// something something
Block Comment
Multi-line comment
start with
/*
and end with
*/
.
Like this
/* something
comment
can be multiple lines
*/
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 */ }