| 1 | package cliscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/ |
| 2 | |
| 3 | import ( |
| 4 | "strconvscip-go gomod github.com/golang/go/src go1.22 strconv/" |
| 5 | "unsafescip-go gomod github.com/golang/go/src go1.22 unsafe/" |
| 6 | ) |
| 7 | |
| 8 | type ( |
| 9 | UintFlagscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/UintFlag# = FlagBasescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/FlagBase#[uint, IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#, uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[uint]] |
| 10 | Uint8Flagscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Uint8Flag# = FlagBasescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/FlagBase#[uint8, IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#, uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[uint8]] |
| 11 | Uint16Flagscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Uint16Flag# = FlagBasescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/FlagBase#[uint16, IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#, uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[uint16]] |
| 12 | Uint32Flagscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Uint32Flag# = FlagBasescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/FlagBase#[uint32, IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#, uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[uint32]] |
| 13 | Uint64Flagscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Uint64Flag# = FlagBasescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/FlagBase#[uint64, IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#, uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[uint64]] |
| 14 | ) |
| 15 | |
| 16 | // -- uint Value |
| 17 | type uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T uint | uint8 | uint16 | uint32 | uint64] struct { |
| 18 | valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val. *T |
| 19 | basescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#base. int |
| 20 | } |
| 21 | |
| 22 | // Below functions are to satisfy the ValueCreator interface |
| 23 | |
| 24 | func (i uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]) Createscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#Create().(val T, p *T, c IntegerConfigscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#) Valuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Value# { |
| 25 | *p = val |
| 26 | |
| 27 | return &uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]{ |
| 28 | valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val.: p, |
| 29 | basescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#base.: c.Basescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/IntegerConfig#Base., |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func (i uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]) ToStringscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#ToString().(b T) string { |
| 34 | i.valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val. = &b |
| 35 | return i.Stringscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#String().() |
| 36 | } |
| 37 | |
| 38 | // Below functions are to satisfy the flag.Value interface |
| 39 | |
| 40 | func (i *uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]) Setscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#Set().(s string) error { |
| 41 | v, err := strconvscip-go gomod github.com/golang/go/src go1.22 strconv/.ParseUintscip-go gomod github.com/golang/go/src go1.22 strconv/ParseUint().(s, i.basescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#base., int(unsafescip-go gomod github.com/golang/go/src go1.22 unsafe/.Sizeof(T(0))*8)) |
| 42 | if err != nil { |
| 43 | return err |
| 44 | } |
| 45 | *i.valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val. = T(v) |
| 46 | return err |
| 47 | } |
| 48 | |
| 49 | func (i *uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]) Getscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#Get().() any { return *i.valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val. } |
| 50 | |
| 51 | func (i *uintValuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#[T]) Stringscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#String().() string { |
| 52 | base := i.basescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#base. |
| 53 | if base == 0 { |
| 54 | base = 10 |
| 55 | } |
| 56 | |
| 57 | return strconvscip-go gomod github.com/golang/go/src go1.22 strconv/.FormatUintscip-go gomod github.com/golang/go/src go1.22 strconv/FormatUint().(uint64(*i.valscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/uintValue#val.), base) |
| 58 | } |
| 59 | |
| 60 | // Uint looks up the value of a local Uint64Flag, returns |
| 61 | // 0 if not found |
| 62 | func (cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#) Uintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Uint().(name string) uint { |
| 63 | return getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[uint](cmd, name) |
| 64 | } |
| 65 | |
| 66 | // Uint8 looks up the value of a local Uint8Flag, returns |
| 67 | // 0 if not found |
| 68 | func (cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#) Uint8scip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Uint8().(name string) uint8 { |
| 69 | return getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[uint8](cmd, name) |
| 70 | } |
| 71 | |
| 72 | // Uint16 looks up the value of a local Uint16Flag, returns |
| 73 | // 0 if not found |
| 74 | func (cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#) Uint16scip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Uint16().(name string) uint16 { |
| 75 | return getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[uint16](cmd, name) |
| 76 | } |
| 77 | |
| 78 | // Uint32 looks up the value of a local Uint32Flag, returns |
| 79 | // 0 if not found |
| 80 | func (cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#) Uint32scip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Uint32().(name string) uint32 { |
| 81 | return getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[uint32](cmd, name) |
| 82 | } |
| 83 | |
| 84 | // Uint64 looks up the value of a local Uint64Flag, returns |
| 85 | // 0 if not found |
| 86 | func (cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#) Uint64scip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Uint64().(name string) uint64 { |
| 87 | return getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[uint64](cmd, name) |
| 88 | } |
| 89 | |
| 90 | func getUintscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getUint().[T uint | uint8 | uint16 | uint32 | uint64](cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#, name string) T { |
| 91 | if v, ok := cmd.Valuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Value().(name).(T); ok { |
| 92 | tracefscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/tracef().("uint available for flag name %[1]q with value=%[2]v (cmd=%[3]q)", name, v, cmd.Namescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Name.) |
| 93 | |
| 94 | return v |
| 95 | } |
| 96 | |
| 97 | tracefscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/tracef().("uint NOT available for flag name %[1]q (cmd=%[2]q)", name, cmd.Namescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Name.) |
| 98 | return 0 |
| 99 | } |