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

使用多个标签进行构建

As seen here, go build accepts a "tags" flag that will include files that are "tagged," i.e.

// +build foo

package main

....

will be excluded from

go build

but included in

go build -tags=foo

Is there a way to include multiple tags? I.e.

go build -tags=foo && bar

Multiple tags can be included in a space separated list:

go build -tags="foo bar"

you can build like this

go build -tags=foo -tags=bar

近期文章

  • Go中的上下文无关语法(CFG)解析器
  • 如何查看当前当地时间是否为夏令时?
  • 带开关和ForEach的Golang模板
  • 为什么在以下带有defer的golang代码示例中得到0和1
  • 如何从Golang中的html / template摆脱ZgotmplZ?
  • 从不同的goroutine进行昂贵的系统调用是否有意义?
  • 我如何通过MinGW安装依赖libiconv的go软件包
  • 如何在proto3中复制未知字段的功能?
  • 如何将CF客户端与用户令牌E2E一起使用
  • 如何安装雨果?
  • 卡夫卡中没有匹配的侦听器错误的领导者经纪人
  • go中所有类型的前置功能
  • 哪个更适合测试非有限浮点IsNaN或IsInf?
  • Go必须采用什么方法轻松地将数据转换为字节或字符串
  • 在Go中使用TTL选项进行映射
  • 带有通道的Golang handlefunc
  • 如何在Go中配置二进制名称而不更改路径
  • 通过引用设置接口{}参数
  • 如何从JSON解散布尔值0和false
  • 是否可以“安全地”将Golang字符串的内存归零?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华