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

'go build'和'go test'可以有默认标签吗?

Specifically, I'm using the magick package, and the features I'm using dictate that I always need to build it with the 'gm' build tag. Is there a way to declare that build tag by default, so that 'go build' for my project (or 'go test') will implicitly build magick using 'gm'?

No, they can't. You either have to type them on the cmd line or use a makefile.

近期文章

  • 运行基准测试时XML解析速度慢
  • fabric-sdk-go错误:无对等连接
  • 如何用回车符打印字符串
  • 如何在Golang中将vars传递给chi路由器
  • 为多个库版本构建Go绑定?
  • interface {}转换为unsafe.Pointer问题
  • 在Go中创建具有约束的自定义类型
  • gccgo不知道-fgo-relative-import-path
  • 获取File()后无法关闭golang tcp套接字
  • GO:使用html / template提供模板时出错
  • 这很好构建。为什么此代码不执行?
  • Golang:从maildir解析多部分电子邮件
  • 如何使用docker-compose运行golang-migrate?
  • 执行:读取文件中特定范围的行
  • 如何使用正则表达式提取子字符串?
  • CGO将Xlib XEvent结构转换为字节数组?
  • 如何使用golang从Firebase删除密钥?
  • 解组异构结构的JSON数组
  • 无法部署Go语言编写的Lambda函数
  • 缓冲区为空后,关闭“工作者”执行例程

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华