Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed dist/* Dist embed.FS )
Functions ¶
func AssetHandler ¶
AssetHandler returns an http.Handler that will serve files from the Assets embed.FS. When locating a file, it will strip the given prefix from the request and prepend the root to the filesystem lookup: typical prefix might be /web/, and root would be build.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.