bjson

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBool

func ExtractBool(input []byte, prop string) (bool, bool)

func ExtractFloat64

func ExtractFloat64(input []byte, prop string) (float64, bool)

func ExtractInt

func ExtractInt(input []byte, prop string) (int, bool)

func ExtractString

func ExtractString(input []byte, prop string) (string, bool)

func ExtractStringSlice

func ExtractStringSlice(input []byte, prop string) ([]string, bool)

func SortJSONs

func SortJSONs(data [][]byte, prop string, t string)

func SortMaps

func SortMaps(data []bdb.M, prop, t string)

func SortStrings

func SortStrings(data []string, prop string, t string)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL