Debian Codegraph @

uint.go

raw symbols SCIP
1 package getoptscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/
2
3 import "fmtscip-go gomod github.com/golang/go/src go1.16 fmt/"
4
5 type uintValscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal# uint
6
7 func (i *uintValscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal#) Stringscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal#String().() string {
8 return fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.16 fmt/Sprint().(uint(*i))
9 }
10
11 func (i *uintValscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal#) Setscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal#Set().(val string) error {
12 _, err := fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sscanfscip-go gomod github.com/golang/go/src go1.16 fmt/Sscanf().(val, "%d", i)
13 return err
14 }
15
16 // UintVar defines a uint flag with specified name, default value, and
17 // usage string. The argument p points to a uint variable in which to
18 // store the value of the flag.
19 func (set *FlagSetscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#) UintVarscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#UintVar().(p *uint, name string, value uint, usage string) {
20 *p = value
21 set.Varscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Var().((*uintValscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uintVal#)(p), name, usage)
22 }
23
24 // UintVar defines a uint flag with specified name, default value, and
25 // usage string. The argument p points to a uint variable in which to
26 // store the value of the flag.
27 func UintVarscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/UintVar().(p *uint, name string, value uint, usage string) {
28 CommandLinescip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/CommandLine..UintVarscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#UintVar().(p, name, value, usage)
29 }
30
31 // Uint defines a uint flag with specified name, default value, and
32 // usage string. The return value is the address of a uint variable that
33 // stores the value of the flag.
34 func (set *FlagSetscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#) Uintscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Uint().(name string, value uint, usage string) *uint {
35 var b uint
36 set.UintVarscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#UintVar().(&b, name, value, usage)
37 return &b
38 }
39
40 // Uint defines a uint flag with specified name, default value, and
41 // usage string. The return value is the address of a uint variable that
42 // stores the value of the flag.
43 func Uintscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/Uint().(name string, value uint, usage string) *uint {
44 return CommandLinescip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/CommandLine..Uintscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Uint().(name, value, usage)
45 }
46
47 type uint64Valscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val# uint64
48
49 func (i *uint64Valscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val#) Stringscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val#String().() string {
50 return fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sprintscip-go gomod github.com/golang/go/src go1.16 fmt/Sprint().(uint64(*i))
51 }
52
53 func (i *uint64Valscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val#) Setscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val#Set().(val string) error {
54 _, err := fmtscip-go gomod github.com/golang/go/src go1.16 fmt/.Sscanfscip-go gomod github.com/golang/go/src go1.16 fmt/Sscanf().(val, "%d", i)
55 return err
56 }
57
58 // Uint64Var defines a uint64 flag with specified name, default value,
59 // and usage string. The argument p points to a uint64 variable in which
60 // to store the value of the flag.
61 func (set *FlagSetscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#) Uint64Varscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Uint64Var().(p *uint64, name string, value uint64, usage string) {
62 *p = value
63 set.Varscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Var().((*uint64Valscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/uint64Val#)(p), name, usage)
64 }
65
66 // Uint64 defines a uint64 flag with specified name, default value, and
67 // usage string. The return value is the address of a uint64 variable
68 // that stores the value of the flag.
69 func (set *FlagSetscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#) Uint64scip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Uint64().(name string, value uint64, usage string) *uint64 {
70 var b uint64
71 set.Uint64Varscip-go gomod git.sr.ht/~sircmpwn/getopt . `git.sr.ht/~sircmpwn/getopt`/FlagSet#Uint64Var().(&b, name, value, usage)
72 return &b
73 }