sorter

package
v0.0.0-...-43c0f45 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key []string

A custom sorting algorithm to keep keys starting with _ before $, and $ before everything else.

func (Key) Len

func (k Key) Len() int

func (Key) Less

func (k Key) Less(i, j int) bool

func (Key) Swap

func (k Key) Swap(i, j int)

type Logical

type Logical []map[string]interface{}

A custom sort algorithm for logical operators so an array of objects gets sorted by the keys of each sub-object.

func Patternize

func Patternize(a []interface{}) Logical

func (Logical) Interface

func (p Logical) Interface() []interface{}

func (Logical) Len

func (p Logical) Len() int

func (Logical) Less

func (p Logical) Less(i, j int) bool

func (Logical) Swap

func (p Logical) Swap(i, j int)

Jump to

Keyboard shortcuts

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