Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = http.NotFound
NotFound is called when no asset is found. It defaults to http.NotFound but can be overwritten
View Source
var Server http.Handler = http.HandlerFunc(ServeHTTP)
Server is simply ServeHTTP but wrapped in http.HandlerFunc so it can be passed into net/http functions directly.
Functions ¶
func Hash ¶
Hash returns the hex-encoded SHA256 hash of the original file Used for the Etag, and useful for caching Returns an empty string if the file is not in the bundle
func ModTime ¶
ModTime returns the modification time of the original file. Useful for caching purposes Returns zero time if the file is not in the bundle
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.