Int64 looks up the value of a local Int64Flag, returns 0 if not found
(name string)
| 89 | // Int64 looks up the value of a local Int64Flag, returns |
| 90 | // 0 if not found |
| 91 | func (cmd *Command) Int64(name string) int64 { |
| 92 | return getInt[int64](cmd, name) |
| 93 | } |
| 94 | |
| 95 | func getInt[T int | int8 | int16 | int32 | int64](cmd *Command, name string) T { |
| 96 | if v, ok := cmd.Value(name).(T); ok { |
no outgoing calls