MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / StringSliceSep

Function StringSliceSep

env/types.go:180–186  ·  view source on GitHub ↗

StringSliceSep defines string slice env var descriptor with custom separator. The separator is read from the provided StringVar descriptor's env variable.

(name string, separatorDesc StringVar)

Source from the content-addressed store, hash-verified

178// StringSliceSep defines string slice env var descriptor with custom separator.
179// The separator is read from the provided StringVar descriptor's env variable.
180func StringSliceSep(name string, separatorDesc StringVar) StringSliceVar {
181 return StringSliceVar{
182 Name: name,
183 format: "separated list of strings",
184 parseFn: parseStringSliceSep(separatorDesc),
185 }
186}
187
188// StringSliceFile defines string slice from file env var descriptor.
189// The file path is read from CLI args (--{cliArgName}) or falls back to the env variable.

Callers 2

config.goFile · 0.92
TestStringSliceSepFunction · 0.92

Calls 1

parseStringSliceSepFunction · 0.85

Tested by 1

TestStringSliceSepFunction · 0.74