golang-tools-install-script

授权协议 Apache-2.0 License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 羊舌旭尧
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

golang-tools-install-script

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:

  • Ubuntu 16.04 to 20.04
  • macOS Sierra (10.12) to Big Sur (11.3)

Supported shells:

  • Bash, fish, Zsh

�� Requirements

  • wget or curl
  • Bash shell

Install

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

�� Install a custom Go version

Pass the --version option into the script including the version that you wish to install.

Example:
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

�� Uninstall

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

�� Notes

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 调用