mirror of
https://github.com/beego/bee.git
synced 2024-12-23 01:30:50 +00:00
16 lines
264 B
Go
16 lines
264 B
Go
|
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
|
||
|
}
|