Documentation ¶
Index ¶
- func AddAsset(groupName, name, value string)
- func AddByteAsset(groupName, name string, value []byte)
- func All() map[string][]byte
- func Bytes(name string) []byte
- func Entries() []string
- func Group(name string) (result *build.FileGroup, err error)
- func MustBytes(name string) ([]byte, error)
- func MustString(name string) (string, error)
- func NewFileserver(dir string, fn ...func(ctype string, content []byte, err error)) func(c *znet.Context)
- func Reset()
- func String(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAsset ¶
func AddAsset(groupName, name, value string)
AddAsset adds the given asset to the root context
func AddByteAsset ¶ added in v1.0.15
AddByteAsset adds the given asset to the root context
func MustString ¶
MustString gets the asset value by name
func NewFileserver ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.