collate

package
v4.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package collate provides collation primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collation

type Collation interface {
	Eq(i, j interface{}) bool
	LT(i, j interface{}) bool
	LTE(i, j interface{}) bool
	GT(i, j interface{}) bool
	GTE(i, j interface{}) bool
}

Collation provides an interface around a CouchDB collation definition.

type Raw

type Raw struct{}

Raw provides raw (byte-wise) collation of strings.

func (*Raw) Eq

func (r *Raw) Eq(i, j interface{}) bool

Eq returns true if i and j are equal.

func (*Raw) GT

func (r *Raw) GT(i, j interface{}) bool

GT returns true if i is greater than j.

func (*Raw) GTE

func (r *Raw) GTE(i, j interface{}) bool

GTE returns true if i is greater than or equal to j.

func (*Raw) LT

func (r *Raw) LT(i, j interface{}) bool

LT returns true if i is less than j.

func (*Raw) LTE

func (r *Raw) LTE(i, j interface{}) bool

LTE returns true if i is less than or equal to j.

Jump to

Keyboard shortcuts

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