Skip to content

llbec/robotech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotech

golang

  • Download Golang
  • rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
  • Add to PATH environment variable
# set go env
# go path
if [ -d "$HOME/.go" ] ; then
        GOPATH="$HOME/.go"
        PATH="$GOPATH/bin:$PATH"
fi
# go root
if [ -d "/usr/local/go" ] ; then
        GOROOT="/usr/local/go"
        PATH="$GOROOT/bin:$PATH"
fi

go env -w GOPATH=$HOME/go
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOPRIVATE=*.gitlab.com,*.gitee.com,*.coding.net

unknown

go env -w GOSUMDB=“sum.golang.google.cn”

install protoc

protoc

install protoc-gen-go

go get -u github.com/golang/protobuf/protoc-gen-go

generate go file

protoc --go_out=. *.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages