sort

package
v0.1.84 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fields

func Fields(sort rSort.Inter) (bson.D, error)

func New

func New() *rSort.Sorts

Types

type Sort

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

func (*Sort) Append

func (s *Sort) Append(field string, value interface{})

Append agrega un nuevo campo de ordenación con su dirección.

func (*Sort) Asc

func (s *Sort) Asc(field string)

Ascending agrega un campo para ordenar en dirección ascendente.

func (*Sort) Clone_

func (s *Sort) Clone_() rSort.InterOper

func (*Sort) Desc

func (s *Sort) Desc(field string)

Descending agrega un campo para ordenar en dirección descendente.

func (*Sort) Log

func (s *Sort) Log(name string)

func (*Sort) String

func (s *Sort) String() string

Jump to

Keyboard shortcuts

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