NewObjectC returns a new Object instance with config. Requirements for config are same as for WithConfig function. If value is nil, failure is reported. Example: object := NewObjectC(config, map[string]interface{}{"foo": 123})
(config Config, value map[string]interface{})
| 36 | // |
| 37 | // object := NewObjectC(config, map[string]interface{}{"foo": 123}) |
| 38 | func NewObjectC(config Config, value map[string]interface{}) *Object { |
| 39 | return newObject(newChainWithConfig("Object()", config.withDefaults()), value) |
| 40 | } |
| 41 | |
| 42 | func newObject(parent *chain, val map[string]interface{}) *Object { |
| 43 | o := &Object{chain: parent.clone(), value: nil} |
searching dependent graphs…