MCPcopy Index your code
hub / github.com/hashicorp/vault / newStringValue

Function newStringValue

command/base_flags.go:514–523  ·  view source on GitHub ↗
(val string, target *string, hidden bool, normalizers []func(string) string)

Source from the content-addressed store, hash-verified

512}
513
514func newStringValue(val string, target *string, hidden bool, normalizers []func(string) string) *stringValue {
515 sv := &stringValue{
516 hidden: hidden,
517 target: target,
518 normalizers: append(normalizers, strings.TrimSpace),
519 }
520 sv.set(val)
521
522 return sv
523}
524
525func (s *stringValue) Set(val string) error {
526 s.set(val)

Callers 1

StringVarMethod · 0.85

Calls 1

setMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…