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

Method Uint64Slice

flag_uint_slice.go:50–52  ·  view source on GitHub ↗

Uint64Slice looks up the value of a local Uint64SliceFlag, returns nil if not found

(name string)

Source from the content-addressed store, hash-verified

48// Uint64Slice looks up the value of a local Uint64SliceFlag, returns
49// nil if not found
50func (cmd *Command) Uint64Slice(name string) []uint64 {
51 return getUintSlice[uint64](cmd, name)
52}
53
54func getUintSlice[T uint | uint8 | uint16 | uint32 | uint64](cmd *Command, name string) []T {
55 if v, ok := cmd.Value(name).([]T); ok {

Calls

no outgoing calls