Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructsInt64Slice ¶
StructInt64Slice returns a slice of int64. For more info refer to Slice types StructInt64Slice() method.
func StructsIntSlice ¶
StructsIntSlice returns a slice of int. For more info refer to Slice types StructIntSlice() method.
Types ¶
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
func New ¶
func New(s interface{}) *Slice
New returns a new *Slice with the slice s. It panics if the s's kind is not slice.
func (*Slice) Name ¶
Name returns the slice's type name within its package. For more info refer to Name() function.
func (*Slice) StructInt64Slice ¶
StructInt64Slice extracts the given s slice's every element, which is struct, to []int64 by the field. It panics if the s's element is not struct, or field is not exits, or the value of field is not signed integer.
func (*Slice) StructIntSlice ¶
StructIntSlice extracts the given s slice's every element, which is struct, to []int by the field. It panics if the s's element is not struct, or field is not exits, or the value of field is not signed integer.