-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalue_uint32.go
86 lines (68 loc) · 3.95 KB
/
value_uint32.go
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
// Uint32Var defines a uint32 flag and environment variable with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the flag and/or environment variable.
func (c *Configurator) Uint32Var(p *uint32, name string, value uint32, usage string) {
c.env().Uint32Var(p, name, value, usage)
c.flag().Uint32Var(p, name, value, usage)
}
// Uint32 defines a uint32 flag and environment variable with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the flag and/or environment variable.
func (c *Configurator) Uint32(name string, value uint32, usage string) *uint32 {
p := new(uint32)
c.Uint32Var(p, name, value, usage)
return p
}
// Uint32VarE defines a uint32 environment variable with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the environment variable.
func (c *Configurator) Uint32VarE(p *uint32, name string, value uint32, usage string) {
c.env().Uint32Var(p, name, value, usage)
}
// Uint32E defines a uint32 environment variable with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the environment variable.
func (c *Configurator) Uint32E(name string, value uint32, usage string) *uint32 {
p := new(uint32)
c.Uint32VarE(p, name, value, usage)
return p
}
// Uint32VarF defines a uint32 flag with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the flag.
func (c *Configurator) Uint32VarF(p *uint32, name string, value uint32, usage string) {
c.flag().Uint32Var(p, name, value, usage)
}
// Uint32F defines a uint32 flag with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the flag.
func (c *Configurator) Uint32F(name string, value uint32, usage string) *uint32 {
p := new(uint32)
c.Uint32VarF(p, name, value, usage)
return p
}
// Uint32Var defines a uint32 flag and environment variable with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the flag and/or environment variable.
func Uint32Var(p *uint32, name string, value uint32, usage string) {
Global.Uint32Var(p, name, value, usage)
}
// Uint32 defines a uint32 flag and environment variable with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the flag and/or environment variable.
func Uint32(name string, value uint32, usage string) *uint32 {
return Global.Uint32(name, value, usage)
}
// Uint32VarE defines a uint32 environment variable with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the environment variable.
func Uint32VarE(p *uint32, name string, value uint32, usage string) {
Global.Uint32VarE(p, name, value, usage)
}
// Uint32E defines a uint32 environment variable with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the environment variable.
func Uint32E(name string, value uint32, usage string) *uint32 {
return Global.Uint32E(name, value, usage)
}
// Uint32VarF defines a uint32 flag with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the flag.
func Uint32VarF(p *uint32, name string, value uint32, usage string) {
Global.Uint32VarF(p, name, value, usage)
}
// Uint32F defines a uint32 flag with specified name, default value, and usage string.
// The return value is the address of a uint32 variable that stores the value of the flag.
func Uint32F(name string, value uint32, usage string) *uint32 {
return Global.Uint32F(name, value, usage)
}