Bash script to automate installation and removal of single-user Go language tools.
Feel free to change the variables on the beginning to match whatever version of Go you need.
Tested working on:
Supported shells:
wget
or curl
Download and run with wget
or curl
. Here's the short version using the official git.io shortening:
# Linux typically has wget installed
wget -q -O - https://git.io/vQhTU | bash
# macOS typically has curl installed
curl -L https://git.io/vQhTU | bash
Or, if you are more comfortable with the raw URL:
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
# or...
curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
Pass the --version
option into the script including the version that you wish to install.
wget -q -O - https://git.io/vQhTU | bash -s -- --version 1.13.2
# or...
curl -L https://git.io/vQhTU | bash -s -- --version 1.13.2
Pass the --remove
option into the script:
wget -q -O - https://git.io/vQhTU | bash -s -- --remove
# or...
curl -L https://git.io/vQhTU | bash -s -- --remove
By default, the script will create .go
and go
folders on your home directory and add the needed variables and PATH
expansion.
$HOME/.go is the directory where Go will be installed to.
$HOME/go is the default workspace directory.
Read more about the workspace.
In order to install Go into another location, set the environment variables $GOROOT
and $GOPATH
before (un)installing:
export GOROOT=/opt/go
export GOPATH=$HOME/projects/go
windows下 golang 安装与配置 请参照:http://www.jianshu.com/p/b6f34ae55c90 Ubuntu下 golang 安装与配置 安装最新版本 golang 方法 (推荐) 下载: https://www.golangtc.com/download 解压安装包tar -C /usr/local -xzf <安装包> (其中 /usr/local 为 go 的
#!/bin/bash #This is Open-Falcon install script #Data is 2018/1/10 #Editer Zhanxing #本脚本使用Red 7和CentOS 7系统安装Open-Falcon install_preparation() { yum install -y wget vim yum install -y git pip epel-re
python 1、使用前准备,安装这三个库 pip install grpcio pip install protobuf pip install grpcio_tools 2、建立一个proto文件hello.proto // [python quickstart](https://grpc.io/docs/quickstart/python.html#run-a-grpc-applicatio
Getting Started Install the Go tools Test your installation Uninstalling Go Getting help Your download should begin shortly. If it does not, click this link. Install the Go tools If you are upgrading
golang consul tools 的一个操作 consul 键值的工具,支持结构体整体打包查询及更新。 使用 安装 go get -u github.com/xxjwxc/consult@master 新建一个连接 import ( "github.com/xxjwxc/consult/consulkv")conf := consulkv.NewConfig() or With Option
Install with yarn: yarn add prettier --dev --exact # or globally yarn global add prettier We're using yarn but you can use npm if you like: npm install --save-dev --save-exact prettier # or globally
Select the operating system on which you are installing Flutter: Windows macOS Linux Important: If you’re in China, first read Using Flutter in China.
Select the operating system on which you are installing Flutter: Windows macOS Linux Important: If you’re in China, first read Using Flutter in China.
包括跟安装和格式检查相关的一些工具。
heat.bash_completion 为 bash 提供 Heat 相关的命令补全。 install_venv_common.py 提供一些环境安装的类,供 install_venv.py 调用。 install_venv.py 调用 install_venv_common.py 中的类,用来安装 virtualenv 包,来实现虚拟 Python 开发环境。 with_venv.sh 调用