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.

list_opts.go 214B

1234567891011121314
  1. package utils
  2. import "fmt"
  3. type ListOpts []string
  4. func (opts *ListOpts) String() string {
  5. return fmt.Sprint(*opts)
  6. }
  7. func (opts *ListOpts) Set(value string) error {
  8. *opts = append(*opts, value)
  9. return nil
  10. }