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

Function StringMap

env/types.go:170–176  ·  view source on GitHub ↗

StringMap defines string key-value map env var descriptor. Parses semicolon-separated key=value pairs.

(name string)

Source from the content-addressed store, hash-verified

168// StringMap defines string key-value map env var descriptor.
169// Parses semicolon-separated key=value pairs.
170func StringMap(name string) StringMapVar {
171 return StringMapVar{
172 Name: name,
173 format: "key=value pairs separated by semicolons",
174 parseFn: parseStringMap,
175 }
176}
177
178// StringSliceSep defines string slice env var descriptor with custom separator.
179// The separator is read from the provided StringVar descriptor's env variable.

Callers 2

TestStringMapFunction · 0.92
config.goFile · 0.92

Calls

no outgoing calls

Tested by 1

TestStringMapFunction · 0.74