1
0
mirror of https://github.com/beego/bee.git synced 2025-07-04 21:50:18 +00:00

Issue-119: flags for excluding Godeps.

This commit is contained in:
Lei Cao
2015-06-17 14:59:59 +08:00
parent 0c2ed7a9a4
commit 60e4f1b872
2 changed files with 33 additions and 1 deletions

12
util.go
View File

@ -247,3 +247,15 @@ func camelString(s string) string {
}
return string(data[:len(data)])
}
// The string flag list, implemented flag.Value interface
type strFlags []string
func (s *strFlags) String() string {
return fmt.Sprintf("%d", *s)
}
func (s *strFlags) Set(value string) error {
*s = append(*s, value)
return nil
}