Documentation ¶
Index ¶
- func ExtractBool(input []byte, prop string) (bool, bool)
- func ExtractFloat64(input []byte, prop string) (float64, bool)
- func ExtractInt(input []byte, prop string) (int, bool)
- func ExtractString(input []byte, prop string) (string, bool)
- func ExtractStringSlice(input []byte, prop string) ([]string, bool)
- func SortJSONs(data [][]byte, prop string, t string)
- func SortMaps(data []bdb.M, prop, t string)
- func SortStrings(data []string, prop string, t string)
- type SortableMaps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortStrings ¶
Types ¶
type SortableMaps ¶
type SortableMaps struct {
// contains filtered or unexported fields
}
func NewSortableMaps ¶
func NewSortableMaps(data []bdb.M) *SortableMaps
func (*SortableMaps) Len ¶
func (m *SortableMaps) Len() int
func (*SortableMaps) Less ¶
func (m *SortableMaps) Less(i, j int) (less bool)
func (*SortableMaps) Sort ¶
func (m *SortableMaps) Sort(prop string)
func (*SortableMaps) Swap ¶
func (m *SortableMaps) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.