Documentation
¶
Overview ¶
Package frontend is a library for serving static files in a Gin web application. It supports local static files and embedding static files in binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrontEnd ¶
type FrontEnd struct {
// contains filtered or unexported fields
}
FrontEnd is the frontend router configuration
type Option ¶ added in v1.12.8
type Option func(*options)
Option set the jwt options.
func With404ToHome ¶ added in v1.12.8
func With404ToHome() Option
With404ToHome set 404 to home page
func WithEmbedFS ¶ added in v1.12.8
WithEmbedFS set embedFS to use embed.FS static resources.
Click to show internal directories.
Click to hide internal directories.