mirror of
https://github.com/beego/bee.git
synced 2024-11-01 00:00:53 +00:00
15 lines
214 B
Go
15 lines
214 B
Go
|
package utils
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type ListOpts []string
|
||
|
|
||
|
func (opts *ListOpts) String() string {
|
||
|
return fmt.Sprint(*opts)
|
||
|
}
|
||
|
|
||
|
func (opts *ListOpts) Set(value string) error {
|
||
|
*opts = append(*opts, value)
|
||
|
return nil
|
||
|
}
|