------------------------------------------- Helper methods for unmarshaling JSON types ------------------------------------------- Slice is a helper method to unmarshal a JSON Array.
()
| 62 | |
| 63 | // Slice is a helper method to unmarshal a JSON Array. |
| 64 | func (p *Partial) Slice() (a []*Partial, err error) { |
| 65 | err = p.Unmarshal(&a) |
| 66 | return |
| 67 | } |
| 68 | |
| 69 | // SliceOfLength is a helper method to unmarshal a JSON Array with specified length. |
| 70 | func (p *Partial) SliceOfLength(length int) (a []*Partial, err error) { |