1 Star 0 Fork 0

492162921@qq.com/bee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
str_flag.go 264 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sergey Lanzman 提交于 8年前 . Refactor!
package utils
import "fmt"
// The string flag list, implemented flag.Value interface
type StrFlags []string
func (s *StrFlags) String() string {
return fmt.Sprintf("%s", *s)
}
func (s *StrFlags) Set(value string) error {
*s = append(*s, value)
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tankedr/bee.git
git@gitee.com:tankedr/bee.git
tankedr
bee
bee
v1.10.0

搜索帮助