MCPcopy
hub / github.com/kubernetes/kops / String

Function String

pkg/util/stringorset/stringorset.go:56–58  ·  view source on GitHub ↗

String will build a value that marshals to a single string

(v string)

Source from the content-addressed store, hash-verified

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

Callers 6

formatAWSIAMStatementFunction · 0.92
buildMethod · 0.92
AddEC2CreateActionMethod · 0.92
AsJSONMethod · 0.92
TestRoundTripFunction · 0.70

Calls 1

NewMethod · 0.65

Tested by 2

TestRoundTripFunction · 0.56