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:
12
util.go
12
util.go
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user