Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
func RegisterAsset ¶
Types ¶
type NotFoundRedirectRespWr ¶
type NotFoundRedirectRespWr struct { http.ResponseWriter // We embed http.ResponseWriter // contains filtered or unexported fields }
自定义FileServer
func (*NotFoundRedirectRespWr) Write ¶
func (w *NotFoundRedirectRespWr) Write(p []byte) (int, error)
func (*NotFoundRedirectRespWr) WriteHeader ¶
func (w *NotFoundRedirectRespWr) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.