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