MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / MustInt

Method MustInt

pkg/gotenberg/flags.go:107–114  ·  view source on GitHub ↗

MustInt returns the int value of a flag given by name. It panics if an error occurs.

(name string)

Source from the content-addressed store, hash-verified

105// MustInt returns the int value of a flag given by name.
106// It panics if an error occurs.
107func (f *ParsedFlags) MustInt(name string) int {
108 val, err := f.GetInt(name)
109 if err != nil {
110 panic(err)
111 }
112
113 return val
114}
115
116// MustDeprecatedInt returns the int value of a deprecated flag if it was
117// explicitly set or the int value of the new flag.

Callers 4

TestParsedFlags_MustIntFunction · 0.95
MustDeprecatedIntMethod · 0.95
ProvisionMethod · 0.80
ProvisionMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestParsedFlags_MustIntFunction · 0.76