static

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 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 AddByteAsset added in v1.0.15

func AddByteAsset(groupName, name string, value []byte)

AddByteAsset adds the given asset to the root context

func All added in v1.0.5

func All() map[string][]byte

All All

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 *build.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, fn ...func(ctype string, content []byte, err error)) 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