mirror of
https://github.com/beego/bee.git
synced 2025-06-26 14:00:19 +00:00
Refactor!
create sub packages delete unused code delete code from not use command cmdRouter,cmdTest, cmdRundocs make command plugins check with gosimple,staticcheck,go vet,unused,unconvert
This commit is contained in:
15
utils/str_flag.go
Normal file
15
utils/str_flag.go
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user