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

Function Int

env/types.go:70–76  ·  view source on GitHub ↗

Int defines integer env var descriptor

(name string)

Source from the content-addressed store, hash-verified

68
69// Int defines integer env var descriptor
70func Int(name string) IntVar {
71 return IntVar{
72 Name: name,
73 format: "int",
74 parseFn: strconv.Atoi,
75 }
76}
77
78// MegaInt defines "megascale" integer env var descriptor.
79// Parses a float value and multiplies by 1,000,000.

Callers 15

config.goFile · 0.92
config.goFile · 0.92
config.goFile · 0.92
config.goFile · 0.92
config.goFile · 0.92
config.goFile · 0.92
TestIntFunction · 0.92
TestMissingVariableFunction · 0.92
TestEmptyValueFunction · 0.92
TestParseFailureFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestIntFunction · 0.74
TestMissingVariableFunction · 0.74
TestEmptyValueFunction · 0.74
TestParseFailureFunction · 0.74