Raw returns underlying value attached to Array. This is the value originally passed to NewArray, converted to canonical form. Example: array := NewArray(t, []interface{}{"foo", 123}) assert.Equal(t, []interface{}{"foo", 123.0}, array.Raw())
()
| 67 | // array := NewArray(t, []interface{}{"foo", 123}) |
| 68 | // assert.Equal(t, []interface{}{"foo", 123.0}, array.Raw()) |
| 69 | func (a *Array) Raw() []interface{} { |
| 70 | return a.value |
| 71 | } |
| 72 | |
| 73 | // Decode unmarshals the underlying value attached to the Array to a target variable. |
| 74 | // target should be one of these: |
no outgoing calls