MCPcopy
hub / github.com/caddyserver/caddy / Bool

Method Bool

cmd/main.go:320–323  ·  cmd/main.go::Flags.Bool

Bool returns the boolean representation of the flag given by name. It returns false if the flag is not a boolean type. It panics if the flag is not in the flag set.

(name string)

Source from the content-addressed store, hash-verified

318// is not a boolean type. It panics if the flag is
319// not in the flag set.
320func (f Flags) Bool(name string) bool {
321 val, _ := strconv.ParseBool(f.String(name))
322 return val
323}
324
325// Int returns the integer representation of the
326// flag given by name. It returns 0 if the flag

Callers 9

replaceLocalAdminServerFunction · 0.45
ServeHTTPMethod · 0.45
upgradeBuildFunction · 0.45
cmdStartFunction · 0.45
cmdRunFunction · 0.45
cmdReloadFunction · 0.45
cmdListModulesFunction · 0.45
cmdAdaptConfigFunction · 0.45
cmdFmtFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected