Documentation ¶
Index ¶
- func Register(a ...*Asset)
- type AFS
- type Asset
- func (a *Asset) Close() error
- func (a *Asset) IsDir() bool
- func (a *Asset) ModTime() time.Time
- func (a *Asset) Mode() os.FileMode
- func (a *Asset) Name() string
- func (a *Asset) Readdir(count int) ([]os.FileInfo, error)
- func (a *Asset) Size() int64
- func (a *Asset) Stat() (os.FileInfo, error)
- func (a *Asset) Sys() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AFS ¶
type AFS struct {
// contains filtered or unexported fields
}
AFS Assets File System. This type implement http.FileSystem interface.
func (*AFS) ExecTemplate ¶
ExecTemplate performs text/template considering the content asset template. The result of the templating is put back into the asset content.
type Asset ¶
type Asset struct { AName string // name of asset. Base64 string // content of asset base64 encoding. NoZLib bool // The label of compression of content zlib. io.ReadSeeker // contains filtered or unexported fields }
Asset the primary type that defines the asset. This type implements the necessary interfaces: http.File, os.FileInfo.
Click to show internal directories.
Click to hide internal directories.