1.Go file
Dinglun Alex Zhou 2020-09-21 go
- all files must in the FILE_NAME.go file
- on the top should have the package name
package main
// import package
import "fmt"
// outside of the method only can use for identifier
//fmt.Println("Hello") // invalid
// entry function of program
func main(){
fmt.Println("Hellow world!")
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12