当前位置: 首页 > news >正文

云南网站开发哪家靠谱/营销推广技巧

云南网站开发哪家靠谱,营销推广技巧,聊城做wap网站服务,建设银行企业银行官网go 安装/版本切换1. go 安装/版本切换1.1. 安装 go1.171.2. brew 安装1.2.1. brew link unlink1.3. 版本切换1.3.1. bash 环境切换1. go 安装/版本切换 1.1. 安装 go1.17 今天发现一个新方法可以在同一台机器上安装 go 的不同版本: $ go get golang.org/dl/go1.17 $ go1.17 …

go 安装/版本切换

  • 1. go 安装/版本切换
    • 1.1. 安装 go1.17
    • 1.2. brew 安装
      • 1.2.1. brew link unlink
    • 1.3. 版本切换
      • 1.3.1. bash 环境切换

1. go 安装/版本切换

1.1. 安装 go1.17

今天发现一个新方法可以在同一台机器上安装 go 的不同版本:

$ go get golang.org/dl/go1.17
$ go1.17 download
$ go1.17 version

1.2. brew 安装

我们先使用命令来查找一下 go 版本

brew search go

这是终端会显示所有的查询结果, 这里因为要安装 go1.12, 所以执行以下命令进行安装。

brew install go@1.12

安装成功后, 进行链接以下就可以了。

brew link go@1.12 --force

至此安装结束, 终端输入 go version 进行验证。

1.2.1. brew link unlink

This process would likely apply to other Homebrew formula also.

First search for your desired package:

brew search go

You should get a list of results that include the below. Not “go” is very unspecific so you may get a lot of results:

==> Formulae
go ✔
go@1.10
go@1.11
go@1.9

Then install the desired version:

brew install go@1.10

Remember that you can have more than one package installed at the same time, but you cannot have them all available at the same time. So if you have the latest/generic go package already installed you need to unlink it first:

brew unlink go

And then you can link a different version:

brew link go@1.10

In some cases you may need to link them with the --force and --overwrite options:

brew link --force --overwrite go@1.10

1.3. 版本切换

1.3.1. bash 环境切换

我一般采用这种方法,简单可控:

# Set the GOPROXY environment variable
export GOPRIVATE=gitlab.xxx.com/*
export GOPROXY=https://goproxy.cn,direct# export GOROOT=/opt/go
export GOROOT=/opt/go1.17.9
export GOBIN=$GOROOT/bin
export GOPATH=/Users/mac/Downloads/project/entexport GOALL=$GOROOT:$GOBIN:$GOPATHexport PATH=$PATH:$GOALL
http://www.jmfq.cn/news/5117023.html

相关文章:

  • 济南网站的建设/培训心得体会范文大全1000字
  • 求推荐专门做借条的网站/seo网络推广培训
  • 广西网站推广/手机百度网页版 入口
  • 营销型网站特征/甘肃seo网站
  • 大连模板网站制作服务/网站seo源码
  • 有哪些网站可以做java题目/百度seo营销公司
  • 车陂手机网站建设电话/怎么在百度发布自己的文章
  • 企业网站的常见服务/附近成人电脑培训班
  • 营销型网站建设排名/广州seo网站推广平台
  • 预定型网站有哪些/济南疫情最新情况
  • 广东省城乡与住房建设厅网站/推广网站的方法
  • 海南手机网站建设公司哪家好/站内免费推广有哪些
  • 自己做的网站怎么上传到网络/谷歌官网入口
  • 网站后台编辑器内容不显示/外贸seo优化
  • 简洁的网站设计/购买模板建站
  • iis网站属性怎么打开/合肥关键词排名推广
  • web版wordpress/seo搜索引擎优化排名
  • 设计网站建站/关键词挖掘站网
  • 没网站可以做seo吗/网站推广投放
  • 惠阳区建设局网站/上海关键词推广公司
  • 珠海pc网站建设/怎么在百度发布免费广告
  • 营销型网站建设的费用报价单/seo推广 课程
  • 广州专业网站建设报价/seo销售代表招聘
  • 网站制作广告/建立网站费用大概需要多少钱
  • 做网站页面的框架/零基础能做网络推广吗
  • 福田做商城网站建设找哪家公司好/广州seo工程师
  • 家电网站设计方案/网店如何做推广
  • 上海公司网站建设以子/seo推广主要做什么的
  • 图书馆网络规划与设计/黑河seo
  • 百度网站官方认证怎么做/域名申请的流程