Documentation ¶
Overview ¶
+build !desktop
Index ¶
- type AssetDB
- func (a *AssetDB) AddAsset(name string, data []byte)
- func (a *AssetDB) Dump()
- func (a *AssetDB) Open(name string) (http.File, error)
- func (a *AssetDB) Read(name string) ([]byte, error)
- func (a *AssetDB) Remove(name string)
- func (a *AssetDB) Serialize(name, pkg string) string
- func (a *AssetDB) String(name string) (string, error)
- type Entry
- type FI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetDB ¶
type AssetDB struct {
// contains filtered or unexported fields
}
AssetDB is a database for assets encoded as byte slices
func NewAssetDB ¶
func NewAssetDB() *AssetDB
NewAssetDB creates a new AssetDB and initialises a blank db
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry implements the http.File interface to allow for use in the http.FileSystem implementation of AssetDB
func (*Entry) Read ¶
Read fills the slice provided returning how many bytes were written and any errors encountered
type FI ¶
type FI struct {
// contains filtered or unexported fields
}
FI is the AssetDB implementation of os.FileInfo.
func (FI) Mode ¶
Mode returns the file as readonly and directories as world writeable and executable
Click to show internal directories.
Click to hide internal directories.