1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/pkg/conf/flagvar/flagvar.go
longxboy 637a6a3628 add warden rpc (#9)
* add warden rpc
2019-04-12 17:32:10 +08:00

19 lines
289 B
Go

package flagvar
import (
"strings"
)
// StringVars []string implement flag.Value
type StringVars []string
func (s StringVars) String() string {
return strings.Join(s, ",")
}
// Set implement flag.Value
func (s *StringVars) Set(val string) error {
*s = append(*s, val)
return nil
}