Documentation ¶
Overview ¶
Package asset provides access to assets that have been stored into the binary executable which has been turned into a self-extracting zip archive.
If the current directory contains a sub directory `assets', files present there will override corresponding files in the zip archive.
Index ¶
- Variables
- func BindBefore(dir string)
- func BindExeDir()
- func BindExeSubDir(name string)
- func FileString(name string) (content string, err error)
- func HttpFS(root string) http.FileSystem
- func Open(name string) (vfs.ReadSeekCloser, error)
- func ParseHTMLTemplateFiles(t *template.Template, filenames ...string) (tnew *template.Template, err error)
- func ParseTemplateFiles(t *template.Template, filenames ...string) (tnew *template.Template, err error)
- func ReadDir(path string) (fi []os.FileInfo, err error)
- func Stat(path string) (fi os.FileInfo, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FS vfs.FileSystem
A file system containing the asset files
Functions ¶
func BindBefore ¶
func BindBefore(dir string)
func BindExeDir ¶
func BindExeDir()
func BindExeSubDir ¶
func BindExeSubDir(name string)
func FileString ¶
FileString reads an asset file an returns its contents as a string.
func HttpFS ¶
func HttpFS(root string) http.FileSystem
func ParseHTMLTemplateFiles ¶ added in v0.1.1
func ParseTemplateFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.