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

Function String

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

String defines a string flag with specified name, default value, and usage string. The return value is the address of a string variable that stores the value of the flag.

(name string, value string, usage string)

Source from the content-addressed store, hash-verified

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.
62func String(name string, value string, usage string) *string {
63 return CommandLine.StringP(name, "", value, usage)
64}
65
66// Like String, but accepts a shorthand letter that can be used after a single dash.
67func StringP(name, shorthand string, value string, usage string) *string {

Callers 1

flag_test.goFile · 0.85

Calls 1

StringPMethod · 0.80

Tested by

no test coverage detected