INNER CODE UNIT · Go
func
resgateio/resgate · main.go:91
func (s *StringSlice) String() string {
if s == nil {
return ""
}
return strings.Join(*s, ";")
}
// Set adds a value to the slice.
func (s *StringSlice) Set(v string) error {
*s = append(*s, v)
return nil
}
// SetDefault sets the default values
func (c *Config) SetDefault() {
if c.NatsURL == "" {
c.NatsURL = DefaultNatsURL
}