接觸原因
想試一下也可以來這邊看看
那麼我們開始吧
Install
我們把環境裝在linxu吧,以後還要紀錄一下Ducker安裝過程等等。
在Windows子系統下我們可以直接複製到/mnt/c掛載區直接把我們的壓縮檔解壓縮並安裝。
sudo tar -C /usr/local -xzf go1.x.x.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
fmt.Printf("hello, world\n") | |
} |
go build hello.go
./hello
環境參數
go env
學習資源
golangpkg