NewArray returns a new Array instance. If reporter is nil, the function panics. If value is nil, failure is reported. Example: array := NewArray(t, []interface{}{"foo", 123})
(reporter Reporter, value []interface{})
| 23 | // |
| 24 | // array := NewArray(t, []interface{}{"foo", 123}) |
| 25 | func NewArray(reporter Reporter, value []interface{}) *Array { |
| 26 | return newArray(newChainWithDefaults("Array()", reporter), value) |
| 27 | } |
| 28 | |
| 29 | // NewArrayC returns a new Array instance with config. |
| 30 | // |
searching dependent graphs…