MCPcopy Index your code
hub / github.com/koding/kite / Slice

Method Slice

dnode/partial.go:64–67  ·  view source on GitHub ↗

------------------------------------------- Helper methods for unmarshaling JSON types ------------------------------------------- Slice is a helper method to unmarshal a JSON Array.

()

Source from the content-addressed store, hash-verified

62
63// Slice is a helper method to unmarshal a JSON Array.
64func (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.
70func (p *Partial) SliceOfLength(length int) (a []*Partial, err error) {

Callers 2

MustSliceMethod · 0.95
onErrorFunction · 0.80

Calls 1

UnmarshalMethod · 0.95

Tested by

no test coverage detected