Documentation
¶
Overview ¶
Package static provides go.h compatible hashed static assets. This allows for providing long lived cache headers for resources which change URLs as their content changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Box ¶
Box is where the files are loaded from. You'll probably want to use https://github.com/GeertJohan/go.rice or FileSystemBox.
func FileSystemBox ¶
func FileSystemBox(fs http.FileSystem) Box
FileSystemBox returns a Box from a http.FileSystem.
type Handler ¶
type Handler struct { Path string // Path at which Handler is configured. Box Box // Box of files to serve. // contains filtered or unexported fields }
Handler serves and provides URLs for static resources.
func FromContext ¶
type Input ¶
type Input struct { ID string Class string Name string Style string Type string Value string Src string Placeholder string Checked bool Multiple bool Data map[string]interface{} Inner h.HTML }
Input renders a HTML <input> tag with the Src URL transformed.
Click to show internal directories.
Click to hide internal directories.