1. get startblog
go mod init >> generate go.modget
export GO111MODULE=onit
go run mai.gomodule
goalng 1.11之後 GO111MODULE defalutl set on引用
2.依賴包會放置在 $GOPATH/pkg/modim
3. goland 使用會發現外部包一片紅色,沒法找到引用包。img
解決方案:settings ---> Go ---> Go modules解決方案