MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / NewStringFlag

Function NewStringFlag

pkg/util/flag/string_flag.go:27–29  ·  view source on GitHub ↗
(defaultVal string)

Source from the content-addressed store, hash-verified

25}
26
27func NewStringFlag(defaultVal string) StringFlag {
28 return StringFlag{value: defaultVal}
29}
30
31func (f *StringFlag) Default(value string) {
32 f.value = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected