MCPcopy
hub / github.com/spf13/pflag / newUint16Value

Function newUint16Value

uint16.go:8–11  ·  view source on GitHub ↗
(val uint16, p *uint16)

Source from the content-addressed store, hash-verified

6type uint16Value uint16
7
8func newUint16Value(val uint16, p *uint16) *uint16Value {
9 *p = val
10 return (*uint16Value)(p)
11}
12
13func (i *uint16Value) Set(s string) error {
14 v, err := strconv.ParseUint(s, 0, 16)

Callers 4

Uint16VarMethod · 0.85
Uint16VarPMethod · 0.85
Uint16VarFunction · 0.85
Uint16VarPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected