order

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	Ascending Direction = iota + 1
	Descending
	Default = Ascending
)

type NilHandling

type NilHandling int
const (
	Native NilHandling = iota + 1
	NilsFirst
	NilsLast
)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func IgnoreCase

func IgnoreCase() Option

func WithDirection

func WithDirection(direction Direction) Option

func WithNilHandling

func WithNilHandling(nilHandling NilHandling) Option

type Order

type Order interface {
	Direction() Direction
	Property() string
	IsAscending() bool
	IsDescending() bool
	IsIgnoreCase() bool
	NilHandling() NilHandling
}

func By

func By(property string, options ...Option) Order

Jump to

Keyboard shortcuts

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