Uint8 defines a uint8 flag with specified name, default value, and usage string. The return value is the address of a uint8 variable that stores the value of the flag.
(name string, value uint8, usage string)
| 64 | // Uint8 defines a uint8 flag with specified name, default value, and usage string. |
| 65 | // The return value is the address of a uint8 variable that stores the value of the flag. |
| 66 | func (f *FlagSet) Uint8(name string, value uint8, usage string) *uint8 { |
| 67 | p := new(uint8) |
| 68 | f.Uint8VarP(p, name, "", value, usage) |
| 69 | return p |
| 70 | } |
| 71 | |
| 72 | // Uint8P is like Uint8, but accepts a shorthand letter that can be used after a single dash. |
| 73 | func (f *FlagSet) Uint8P(name, shorthand string, value uint8, usage string) *uint8 { |