NewValueC returns a new Value instance with config. Requirements for config are same as for WithConfig function. Value may be nil. See NewValue for usage example.
(config Config, value interface{})
| 48 | // |
| 49 | // See NewValue for usage example. |
| 50 | func NewValueC(config Config, value interface{}) *Value { |
| 51 | return newValue(newChainWithConfig("Value()", config.withDefaults()), value) |
| 52 | } |
| 53 | |
| 54 | func newValue(parent *chain, val interface{}) *Value { |
| 55 | v := &Value{parent.clone(), nil} |
searching dependent graphs…