Debian Codegraph @

flag_number_slice.go

raw symbols SCIP
1 package cliscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/
2
3 type numberTypescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/numberType# interface {
4 int | int8 | int16 | int32 | int64 | float32 | float64
5 }
6
7 func getNumberSlicescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/getNumberSlice().[T numberTypescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/numberType#](cmd *Commandscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#, name string) []T {
8 if v, ok := cmd.Valuescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Value().(name).([]T); ok {
9 tracefscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/tracef().("%T slice available for flag name %[1]q with value=%[2]v (cmd=%[3]q)", *new(T), name, v, cmd.Namescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Name.)
10 return v
11 }
12
13 tracefscip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/tracef().("%T slice NOT available for flag name %[1]q (cmd=%[2]q)", *new(T), name, cmd.Namescip-go gomod github.com/urfave/cli/v3 . `github.com/urfave/cli/v3`/Command#Name.)
14 return nil
15 }