MCPcopy
hub / github.com/etcd-io/etcd / SelectiveStringValue

Struct SelectiveStringValue

pkg/flags/selective_string.go:25–28  ·  view source on GitHub ↗

SelectiveStringValue implements the flag.Value interface.

Source from the content-addressed store, hash-verified

23
24// SelectiveStringValue implements the flag.Value interface.
25type SelectiveStringValue struct {
26 v string
27 valids map[string]struct{}
28}
29
30// Set verifies the argument to be a valid member of the allowed values
31// before setting the underlying flag value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected