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

Method Bool

modules/caddyhttp/caddyhttp.go:217–219  ·  view source on GitHub ↗

Bool returns ws as a boolean. If ws is not a boolean, false is returned.

()

Source from the content-addressed store, hash-verified

215// Bool returns ws as a boolean. If ws is not a
216// boolean, false is returned.
217func (ws WeakString) Bool() bool {
218 return string(ws) == "true"
219}
220
221// String returns ws as a string.
222func (ws WeakString) String() string {

Callers 10

warnIfPolicyAllowsAllMethod · 0.45
cmdRespondFunction · 0.45
EqualMethod · 0.45
EqualMethod · 0.45
CELMatcherDecoratorFunction · 0.45
StartMethod · 0.45
cmdReverseProxyFunction · 0.45
cmdFileServerFunction · 0.45
EmitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected