-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalue_float64.go
More file actions
86 lines (68 loc) · 4.04 KB
/
Copy pathvalue_float64.go
File metadata and controls
86 lines (68 loc) · 4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package conf
// Float64Var defines a float64 flag and environment variable with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag and/or environment variable.
func (c *Configurator) Float64Var(p *float64, name string, value float64, usage string) {
c.env().Float64Var(p, name, value, usage)
c.flag().Float64Var(p, name, value, usage)
}
// Float64 defines a float64 flag and environment variable 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 and/or environment variable.
func (c *Configurator) Float64(name string, value float64, usage string) *float64 {
p := new(float64)
c.Float64Var(p, name, value, usage)
return p
}
// Float64VarE defines a float64 environment variable with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the environment variable.
func (c *Configurator) Float64VarE(p *float64, name string, value float64, usage string) {
c.env().Float64Var(p, name, value, usage)
}
// Float64E defines a float64 environment variable with specified name, default value, and usage string.
// The return value is the address of a float64 variable that stores the value of the environment variable.
func (c *Configurator) Float64E(name string, value float64, usage string) *float64 {
p := new(float64)
c.Float64VarE(p, name, value, usage)
return p
}
// Float64VarF defines a float64 flag with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag.
func (c *Configurator) Float64VarF(p *float64, name string, value float64, usage string) {
c.flag().Float64Var(p, name, value, usage)
}
// Float64F 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.
func (c *Configurator) Float64F(name string, value float64, usage string) *float64 {
p := new(float64)
c.Float64VarF(p, name, value, usage)
return p
}
// Float64Var defines a float64 flag and environment variable with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag and/or environment variable.
func Float64Var(p *float64, name string, value float64, usage string) {
Global.Float64Var(p, name, value, usage)
}
// Float64 defines a float64 flag and environment variable 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 and/or environment variable.
func Float64(name string, value float64, usage string) *float64 {
return Global.Float64(name, value, usage)
}
// Float64VarE defines a float64 environment variable with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the environment variable.
func Float64VarE(p *float64, name string, value float64, usage string) {
Global.Float64VarE(p, name, value, usage)
}
// Float64E defines a float64 environment variable with specified name, default value, and usage string.
// The return value is the address of a float64 variable that stores the value of the environment variable.
func Float64E(name string, value float64, usage string) *float64 {
return Global.Float64E(name, value, usage)
}
// Float64VarF defines a float64 flag with specified name, default value, and usage string.
// The argument p points to a float64 variable in which to store the value of the flag.
func Float64VarF(p *float64, name string, value float64, usage string) {
Global.Float64VarF(p, name, value, usage)
}
// Float64F 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.
func Float64F(name string, value float64, usage string) *float64 {
return Global.Float64F(name, value, usage)
}