MCPcopy Create free account
hub / github.com/zalando/skipper / String

Method String

config/regexplistflag.go:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8type regexpListFlag []*regexp.Regexp
9
10func (r regexpListFlag) String() string {
11 s := make([]string, len(r))
12 for i, ri := range r {
13 s[i] = ri.String()
14 }
15
16 return strings.Join(s, "\n")
17}
18
19func (r *regexpListFlag) Set(value string) error {
20 rx, err := regexp.Compile(value)

Callers 2

TestRegexpListFlagFunction · 0.95
TestRegexpListConfigFunction · 0.95

Calls 2

JoinMethod · 0.80
StringMethod · 0.65

Tested by 2

TestRegexpListFlagFunction · 0.76
TestRegexpListConfigFunction · 0.76