__downloas_install() { _path=$HOME'/env/go' _url='https://studygolang.com/dl/golang/go1.16.2.linux-armv6l.tar.gz' _file_path=$_path/download/$(echo $_url | awk -F "/" '{print $NF}') mkdir -p $_path/{root,download} curl -Lo $_file_path $_url tar zxvf $_file_path -C $_path/root/ --strip-components 1}__downloas_install__set_go_path() { echo 'export PATH='$_path'/root/bin:$PATH' >~/.bash_profile source ~/.bash_profile}__set_go_path__set_go_env() { go env -w GOPATH=$HOME"/env/go/path" go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPRIVATE=.gitlab.com,.gitee.com go env -w GOSUMDB=off go env -w GOSUMDB="sum.golang.google.cn"}__set_go_env