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

Method MustSliceOfLength

dnode/partial.go:129–133  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

127}
128
129func (p *Partial) MustSliceOfLength(length int) []*Partial {
130 a, err := p.SliceOfLength(length)
131 checkError(err)
132 return a
133}
134
135func (p *Partial) One() *Partial {
136 return p.MustSliceOfLength(1)[0]

Callers 3

OneMethod · 0.95
SquareCBFunction · 0.80
handleNotifyDarwinFunction · 0.80

Calls 2

SliceOfLengthMethod · 0.95
checkErrorFunction · 0.85

Tested by 1

SquareCBFunction · 0.64