$ mv golang-1.13 /usr/local/go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Add the preceding configurations to the ~/.bashrc
file. Run the source ~/.bashrc
command to take effect.
$ go version
Go to the nebula-importer project directory and run the following commands:
$ cd nebula-importer/cmd
$ go build -mod vendor -o nebula-importer
$ ./nebula-importer --help