我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何自动设置GOBIN

working my go project i need to
set GOPATH=D:\projects\go\my project
and then
set GOBIN=D:\projects\go\my project\bin
that is okey

then working on an other project same process a gain
so is there is away of setting only GOPATH
and automatically GOBIN becomes GOPATH\bin

GOBIN should by default be GOPATH/bin, so you don't have to do anything

See "GOPATH environment variable"

DIR is a directory listed in the GOPATH

If the GOBIN environment variable is set, commands are installed to the directory it names instead of DIR/bin

近期文章

  • 在Go中解析XML
  • Golang:可以肯定地说,如果一个结构体实现一个方法,那么它会满足所有定义该方法签名的接口?
  • 为什么RethinkDB非常慢?
  • Go中的OpenCV(或类似库)
  • golang:将毫秒转换为时间
  • 如何在golang中将数组编组为二进制并将数组解组为二进制?
  • 了解Golang中的词法作用域
  • 如何在Golang模板中打印换行? [重复]
  • golang tcp套接字-处理多个消息
  • 使用select的Golang频道不会停止
  • 如何提取Unix时间戳并获取日期
  • 在golang中解析JSON的子部分
  • go-在指定的路径中创建一个新文件
  • 如何在golang中将* multipart.FileHeader文件类型转换为* os.File?
  • 从golang中的函数返回结构片的正确模式
  • GraphQL和中继的概念
  • 使用GORM和Postgresql时如何在Go中节省数据库时间?
  • 如何在Golang中强制使用UTF-8编码
  • Golang-TLS握手错误
  • 如何从uuid中获得2个长数字?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华