Documentation ¶ Index ¶ Constants Variables type By func MustParse(fieldMappings map[string]string, orderBy string, defaultOrder By) By func NewBy(field string, direction string) By func Parse(fieldMappings map[string]string, orderBy string, defaultOrder By) (By, error) func (b By) PGX() string Constants ¶ View Source const ( ASC = "ASC" DESC = "DESC" ) Variables ¶ View Source var ErrUnkownDirection = errors.New("unknown direction") View Source var ErrUnkownOrder = errors.New("unknown order") Functions ¶ This section is empty. Types ¶ type By ¶ type By struct { Field string Direction string } func MustParse ¶ func MustParse(fieldMappings map[string]string, orderBy string, defaultOrder By) By func NewBy ¶ func NewBy(field string, direction string) By func Parse ¶ func Parse(fieldMappings map[string]string, orderBy string, defaultOrder By) (By, error) func (By) PGX ¶ func (b By) PGX() string Source Files ¶ View all Source files order.go Click to show internal directories. Click to hide internal directories.