Documentation ¶
Overview ¶
helpers are used by pages/components packages.
Index ¶
- Variables
- func BytesHumanize(bytes int64) string
- func Checkbox(r *http.Request, key string) bool
- func DecodeForm(w http.ResponseWriter, r *http.Request, form any) error
- func EndpointSchema() models.EndpointSchema
- func EndpointsSelections(selected []models.Endpoint, all []models.Endpoint) []bool
- func JSON(data any) string
- func Pagination(q url.Values) (pagination.Page, error)
- func ParseMultipartForm(r *http.Request) error
- func Query(queries url.Values, vals ...any) string
- func Reroute(w http.ResponseWriter, r *http.Request, view http.Handler)
- func TimeHumanize(date time.Time) string
- func Tracer(app core.App, r *http.Request) trace.Tracer
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeHourFormat12 string = "12"
View Source
var TimeHourFormat24 string = "24"
Functions ¶
func BytesHumanize ¶ added in v0.13.0
func DecodeForm ¶ added in v0.13.0
func EndpointSchema ¶ added in v0.14.0
func EndpointSchema() models.EndpointSchema
func EndpointsSelections ¶ added in v0.13.0
func Pagination ¶ added in v0.13.0
func Pagination(q url.Values) (pagination.Page, error)
func ParseMultipartForm ¶ added in v0.13.2
func TimeHumanize ¶ added in v0.13.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.