Example #1
0
func (s subspace) Sub(el ...tuple.TupleElement) Subspace {
	return subspace{concat(s.Bytes(), tuple.Tuple(el).Pack()...)}
}
Example #2
0
// Sub returns a new Subspace whose prefix is the encoding of the provided
// element(s). If any of the elements are not a valid tuple.TupleElement, a
// runtime panic will occur.
func Sub(el ...tuple.TupleElement) Subspace {
	return subspace{tuple.Tuple(el).Pack()}
}