translation/chinese/02-编写第一个程序/README.md
嗨!
作为参考,你可以在参加本节讲座后保存这个备忘录
你也可以打印下来这个备忘录,然后和本节的视频讲座一起操作
加油!
进入目录: cd directoryPath
WINDOWS:
dirOS X & LINUXes:
ls编译一个 Go 程序:
go build main.go运行一个 Go 程序:
go run main.gomkdir myDirectoryNamecd myDirectoryNamecode main.go
package main
import "fmt"
func main() {
fmt.Println("Hi! I want to be a Gopher!")
}
go run main.gogo run .这就是全部内容了!
更多资料, 参考: https://blog.learngoprogramming.com
Copyright © 2018 Inanc Gumus
Learn Go Programming Course