String will build a value that marshals to a single string
(v string)
| 54 | |
| 55 | // String will build a value that marshals to a single string |
| 56 | func String(v string) StringOrSet { |
| 57 | return StringOrSet{values: sets.New(v), forceEncodeAsArray: false} |
| 58 | } |
| 59 | |
| 60 | // UnmarshalJSON implements the json.Unmarshaller interface. |
| 61 | func (s *StringOrSet) UnmarshalJSON(value []byte) error { |