Uint64 looks up the value of a local Uint64Flag, returns 0 if not found
(name string)
| 84 | // Uint64 looks up the value of a local Uint64Flag, returns |
| 85 | // 0 if not found |
| 86 | func (cmd *Command) Uint64(name string) uint64 { |
| 87 | return getUint[uint64](cmd, name) |
| 88 | } |
| 89 | |
| 90 | func getUint[T uint | uint8 | uint16 | uint32 | uint64](cmd *Command, name string) T { |
| 91 | if v, ok := cmd.Value(name).(T); ok { |
no outgoing calls