Documentation
¶
Index ¶
Constants ¶
View Source
const ( AssetsPath = "/public/assets/" PublicPath = "/public/" )
Variables ¶
View Source
var AssetsFS embed.FS
AssetsFS should be set by the user application using //go:embed Example in user's code:
//go:embed assets
var AssetsFS embed.FS
func init() {
public.AssetsFS = AssetsFS
}
Functions ¶
func FileServerHandler ¶
FileServerHandler returns an HTTP handler for serving embedded static files
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.