Documentation ¶
Overview ¶
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- func CalculateMaxPageNum[T util.AnyInteger](size, step T) T
- func FileServer(fsys fs.FS, stripPrefix string) http.HandlerFunc
- func NewStaticFS(loc Location) fs.FS
- func ServeSingle(fsys fs.FS, filePath string) http.HandlerFunc
- type Location
- type Page
- type PaginationResult
- type Paginator
- type PgInput
- type TContainer
- type TExecuter
- type TGetter
- type TemplateMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateMaxPageNum ¶
func CalculateMaxPageNum[T util.AnyInteger](size, step T) T
func FileServer ¶
func FileServer(fsys fs.FS, stripPrefix string) http.HandlerFunc
func NewStaticFS ¶
func ServeSingle ¶
func ServeSingle(fsys fs.FS, filePath string) http.HandlerFunc
Types ¶
type PaginationResult ¶
type Paginator ¶
func NewPaginator ¶
type PgInput ¶
type TContainer ¶
type TContainer struct {
// contains filtered or unexported fields
}
func ParseTemplates ¶
func ParseTemplates(loc Location) (*TContainer, error)
type TemplateMap ¶
Click to show internal directories.
Click to hide internal directories.