Comments
- //
package main
import "fmt"
// Singe line comment
/*
Multi
line
comment
*/
func main() {
// fmt.Println("Golang is bad")
fmt.Println("Hello World") // comment after statement
}
Hello World
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
package main
import "fmt"
// Singe line comment
/*
Multi
line
comment
*/
func main() {
// fmt.Println("Golang is bad")
fmt.Println("Hello World") // comment after statement
}
Hello World