beego bee tool mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

str_flag.go 264B

123456789101112131415
  1. package utils
  2. import "fmt"
  3. // The string flag list, implemented flag.Value interface
  4. type StrFlags []string
  5. func (s *StrFlags) String() string {
  6. return fmt.Sprintf("%s", *s)
  7. }
  8. func (s *StrFlags) Set(value string) error {
  9. *s = append(*s, value)
  10. return nil
  11. }