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

Function MegaInt

env/types.go:80–86  ·  view source on GitHub ↗

MegaInt defines "megascale" integer env var descriptor. Parses a float value and multiplies by 1,000,000.

(name string)

Source from the content-addressed store, hash-verified

78// MegaInt defines "megascale" integer env var descriptor.
79// Parses a float value and multiplies by 1,000,000.
80func MegaInt(name string) IntVar {
81 return IntVar{
82 Name: name,
83 format: "float, multiplied by 1,000,000 internally",
84 parseFn: parseMegaInt,
85 }
86}
87
88// Duration defines duration env var descriptor.
89// Parses an integer as seconds.

Callers 2

config.goFile · 0.92
TestMegaIntFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestMegaIntFunction · 0.74