Documentation
¶
Index ¶
- Constants
- type URL
- func (l *URL) ArgsVals(sortcolname string, sortdirUP bool) (argVals []web.Argument)
- func (l *URL) MergeArgs(targets ...web.Argument) []web.Argument
- func (u URL) Offset() int
- func (l URL) Redirect(listRoute route, args ...web.Argument) error
- func (l *URL) SetOrderBy(colname string, dirUP bool)
- func (u URL) SortByColumn(sortby string) *URL
- func (l *URL) SplitOrderBy() (orderByField string, dirUp bool)
- func (u URL) URL() string
- func (l *URL) URLFor(listRoute route, args ...web.Argument) string
Constants ¶
View Source
const ASC = "asc"
View Source
const DESC = "desc"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶ added in v0.13.7
type URL struct { /* */ BaseURL string DefaultSortUp bool DefaultSortBy string DefaultLimit int Limit web.QueryArg[int] Page web.QueryArg[int] OrderBy web.QueryArg[string] SearchField web.QueryArg[string] SearchComparison web.QueryArg[string] SearchValue web.QueryArg[string] }
func (*URL) SetOrderBy ¶ added in v0.13.7
func (URL) SortByColumn ¶ added in v0.13.8
func (*URL) SplitOrderBy ¶ added in v0.13.7
Click to show internal directories.
Click to hide internal directories.