sorts

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.0.26

type Options struct {
	// contains filtered or unexported fields
}

func Ascending

func Ascending(field string) *Options

func Descending

func Descending(field string) *Options

func Meta

func Meta(field string) *Options

func New

func New() *Options

func (*Options) Ascending added in v0.0.26

func (s *Options) Ascending(field string) *Options

func (*Options) Descending added in v0.0.26

func (s *Options) Descending(field string) *Options

func (*Options) MarshalBSON added in v0.0.26

func (s *Options) MarshalBSON() ([]byte, error)

func (*Options) Meta added in v0.0.26

func (s *Options) Meta(field string) *Options

func (*Options) ToMap added in v0.0.26

func (s *Options) ToMap() bson.M

func (*Options) UnmarshalBSON added in v0.0.26

func (s *Options) UnmarshalBSON(bytes []byte) error

type Order added in v0.0.26

type Order int
const (
	Desc Order = -1
	Asc  Order = 1
)

Jump to

Keyboard shortcuts

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