Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash.
(name, shorthand string, value int64, usage string)
| 67 | |
| 68 | // Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash. |
| 69 | func (f *FlagSet) Int64P(name, shorthand string, value int64, usage string) *int64 { |
| 70 | p := new(int64) |
| 71 | f.Int64VarP(p, name, shorthand, value, usage) |
| 72 | return p |
| 73 | } |
| 74 | |
| 75 | // Int64 defines an int64 flag with specified name, default value, and usage string. |
| 76 | // The return value is the address of an int64 variable that stores the value of the flag. |