create tutorial.go
//tutorial.gopackage main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
--------------------------
//cmd
C:\Users\bob\golang1>go run tutorial.go
Hello World!
C:\Users\bob\golang1>go build tutorial.go
C:\Users\bob\golang1>tutorial.exe
Hello World!
reference:
No comments:
Post a Comment