Learn Go - Learn Go - Introduction Cheatsheet - Codecademy
Learn Go - Learn Go - Introduction Cheatsheet - Codecademy
Go Comments
Comments are useful for documentation in a Go file and // one line comment
are ignored by the compiler. There are two types of
/*
comments:
a single-lined comment is preceded by a double this comment
forward slash, // , and ends at the end of the is on multiple lines
line.
and ends here
a multi-lined comment begins with /* followed
by one or more lines of comments and ends with */
*/
Go Documentation
import "fmt"
import "math"
import "time"
or
import (
"fmt"
"math"
"time"
)
Go Compiler
import "fmt"
Running Files in Go
Compile Go
Print Share