helpers

package
v0.0.0-...-27f04c1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ACCURACY = 0.000001

Variables

View Source
var (
	ElementNotfound    = errors.New("element not found")
	ParseError         = errors.New("parse error")
	DocumentError      = errors.New("doc is nil")
	NoMoreData         = errors.New("no more data")
	MongoCfgError      = errors.New("mongo config should not nil")
	ConnectError       = errors.New("database connect failed")
	PingError          = errors.New("connect ping is not through")
	CollectionNotFound = errors.New("collection not found")
)

Error codes returned by failures to parse an expression.

Functions

func Compare

func Compare(i, j interface{}) int

func CompareSlice

func CompareSlice(a, b [][]string) bool

func Merge

func Merge(arr1, arr2 []document.DocId) []document.DocId

Types

type Comparable

type Comparable interface {
	Compare(a, b interface{}) int
}

type Func

type Func func(a, b interface{}) int

func (Func) Compare

func (f Func) Compare(a, b interface{}) int

type SBuilder

type SBuilder interface {
	StringBuilder(cap int, value ...interface{}) string
}

Jump to

Keyboard shortcuts

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