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

Method Float64

cmd/main.go:338–341  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

336// is not a float64 type. It panics if the flag is
337// not in the flag set.
338func (f Flags) Float64(name string) float64 {
339 val, _ := strconv.ParseFloat(f.String(name), 64)
340 return val
341}
342
343// Duration returns the duration representation of the
344// flag given by name. It returns false if the flag

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected