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

Method MustDeprecatedString

pkg/gotenberg/flags.go:31–37  ·  view source on GitHub ↗

MustDeprecatedString returns the string value of a deprecated flag if it was explicitly set or the string value of the new flag. It panics if an error occurs.

(deprecated string, newName string)

Source from the content-addressed store, hash-verified

29// explicitly set or the string value of the new flag.
30// It panics if an error occurs.
31func (f *ParsedFlags) MustDeprecatedString(deprecated string, newName string) string {
32 if f.Changed(deprecated) {
33 return f.MustString(deprecated)
34 }
35
36 return f.MustString(newName)
37}
38
39// MustStringSlice returns the string slice value of a flag given by name.
40// It panics if an error occurs.

Callers 3

RunFunction · 0.95
ProvisionMethod · 0.80

Calls 1

MustStringMethod · 0.95

Tested by 1