MCPcopy
hub / github.com/spf13/pflag / Float64

Function Float64

float64.go:77–79  ·  view source on GitHub ↗

Float64 defines a float64 flag with specified name, default value, and usage string. The return value is the address of a float64 variable that stores the value of the flag.

(name string, value float64, usage string)

Source from the content-addressed store, hash-verified

75// Float64 defines a float64 flag with specified name, default value, and usage string.
76// The return value is the address of a float64 variable that stores the value of the flag.
77func Float64(name string, value float64, usage string) *float64 {
78 return CommandLine.Float64P(name, "", value, usage)
79}
80
81// Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash.
82func Float64P(name, shorthand string, value float64, usage string) *float64 {

Callers 1

flag_test.goFile · 0.85

Calls 1

Float64PMethod · 0.80

Tested by

no test coverage detected