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

眼镜蛇的允许标志值

Is there built-in tooling (and if so how do I use it?) to require a flag to be one of several values and throw an error if a flag is not one of the permitted values, in the Cobra library? I didn't see this on the Github page.

Though it is hard to prove a negative, it doesn't look this is currently a feature.

近期文章

  • 如何在Go的Terminal的一部分中使用Vim
  • Auth0-无法验证代码验证器错误
  • 无法从字节数组中删除Null终止符?
  • 如何调用golang结构字段的函数?
  • 在golang http中动态添加路由
  • 如何在Go中为MySQL构建RESTful API?
  • 为go-pg ORM中的多对多关系指定密钥
  • Kubernetes /代理端汽车的Cloud SQL连接
  • 有没有办法在Go中省略导出的函数主体?
  • 发生状况时停止读取频道的最佳方法
  • Golang无法发送数据包以使收到的IP地址震惊
  • mgo mongodb读/写示例
  • REST API无法正常工作,并使用https / ssl重定向
  • 添加Alpha通道性能
  • 在Golang中比较超集对象
  • 在Windows上安装swaggo(swagger +杜松子酒)
  • 不正确的数据重传
  • vim-go找不到需要的库
  • AWS Lambda GoLang处理程序API
  • 如何在Sarama获得多个订阅

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华