Function
newStringValue
(val string, target *string, hidden bool, normalizers []func(string) string)
Source from the content-addressed store, hash-verified
| 512 | } |
| 513 | |
| 514 | func 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 | |
| 525 | func (s *stringValue) Set(val string) error { |
| 526 | s.set(val) |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…