MCPcopy
hub / github.com/owenthereal/ccat / StringP

Method StringP

Godeps/_workspace/src/github.com/spf13/pflag/string.go:54–58  ·  view source on GitHub ↗

Like String, but accepts a shorthand letter that can be used after a single dash.

(name, shorthand string, value string, usage string)

Source from the content-addressed store, hash-verified

52
53// Like String, but accepts a shorthand letter that can be used after a single dash.
54func (f *FlagSet) StringP(name, shorthand string, value string, usage string) *string {
55 p := new(string)
56 f.StringVarP(p, name, shorthand, value, usage)
57 return p
58}
59
60// String defines a string flag with specified name, default value, and usage string.
61// The return value is the address of a string variable that stores the value of the flag.

Callers 4

TestShorthandFunction · 0.95
StringFunction · 0.80
StringPFunction · 0.80
example_test.goFile · 0.80

Calls 1

StringVarPMethod · 0.95

Tested by 1

TestShorthandFunction · 0.76