MCPcopy
hub / github.com/urfave/cli / Uint64

Method Uint64

flag_uint.go:86–88  ·  view source on GitHub ↗

Uint64 looks up the value of a local Uint64Flag, returns 0 if not found

(name string)

Source from the content-addressed store, hash-verified

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

Callers 5

TestUint64FlagFunction · 0.95
TestCommand_UintFunction · 0.95
TestCommandInvalidNameFunction · 0.95

Calls

no outgoing calls

Tested by 5

TestUint64FlagFunction · 0.76
TestCommand_UintFunction · 0.76
TestCommandInvalidNameFunction · 0.76