Embed comment into source code. in Golang
Embed comment into source code.
// handles string after // as comments.
// can be written after statement like function, assigning variable, etc...
/* - */ handles string included by /* */ as comments.
/* - */ can be embedded between statements.
/* - */ can handle multiple comment lines.
/* - */ can not be embedded into other /* - */.
comment.go
package main

import "fmt"

// one line comment

func main() {
	// one line comment

	fmt.Println("one line comment can write after statement") // one line comment

	/* This comment style can be written in multi lines like the following */
	/*
	   line 1
	   line 2
	*/
	/* This comment style can be embedded in statement */
	fmt.Println("This Println() statement line includes " + /* comment */ "comment")
}

      
Result
$ go run comment.go
one line comment can write after statement
This Println() statement line includes comment