static

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 Bytes

func Bytes(name string) []byte

Bytes gets the asset value by name

func Entries

func Entries() []string

Entries returns the file entries as a slice of filenames

func Group

func Group(name string) (result *lib.FileGroup, err error)

Group holds a group of assets

func MustBytes

func MustBytes(name string) ([]byte, error)

MustBytes gets the asset value by name

func MustString

func MustString(name string) (string, error)

MustString gets the asset value by name

func NewFileserver

func NewFileserver(dir string) func(c *znet.Context)

func Reset

func Reset()

Reset clears the file entries

func String

func String(name string) string

String gets the asset value by name

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL