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

Method MustString

pkg/gotenberg/flags.go:19–26  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

17// MustString returns the string value of a flag given by name.
18// It panics if an error occurs.
19func (f *ParsedFlags) MustString(name string) string {
20 val, err := f.GetString(name)
21 if err != nil {
22 panic(err)
23 }
24
25 return val
26}
27
28// MustDeprecatedString returns the string value of a deprecated flag if it was
29// explicitly set or the string value of the new flag.

Callers 6

MustDeprecatedStringMethod · 0.95
RunFunction · 0.95
ProvisionMethod · 0.80
ProvisionMethod · 0.80
ProvisionMethod · 0.80

Calls

no outgoing calls

Tested by 1