echo"">> /etc/profile
echo"">> /etc/profile
echo"install go dev start ..."echo"#### go-env">> /etc/profile
echo"export GO111MODULE=on">> /etc/profile
echo"export GOROOT=/opt/go">> /etc/profile
echo"export GOPATH=/opt/dev/goproject">> /etc/profile
echo"export GOPROXY=https://goproxy.cn,direct">> /etc/profile
echo"export PATH=$PATH:$GOROOT/bin:$GOPATH/bin">> /etc/profile
echo"install go dev end ..."source /etc/profile
echo"====================================="
go envecho"====================================="echo"install go tools start ..."
go install-v golang.org/x/tools/gopls@latest
go install-v github.com/cweill/gotests/gotests@latest
go install-v github.com/fatih/gomodifytags@latest
go install-v github.com/josharian/impl@latest
go install-v github.com/haya14busa/goplay/cmd/goplay@latest
go install-v github.com/go-delve/delve/cmd/dlv@latest
go install-v honnef.co/go/tools/cmd/staticcheck@latest
echo"install go tools end ..."