gotests: github.com/cweill/gotests/internal/render/bindata Index | Files

package bindata

import "github.com/cweill/gotests/internal/render/bindata"

Index

Package Files

esc.go helper.go

func AssetNames Uses

func AssetNames() []string

AssetNames returns the names of the assets. (for compatible with go-bindata)

func Dir Uses

func Dir(useLocal bool, name string) http.FileSystem

Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.

func FS Uses

func FS(useLocal bool) http.FileSystem

FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSByte Uses

func FSByte(useLocal bool, name string) ([]byte, error)

FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSMustByte Uses

func FSMustByte(useLocal bool, name string) []byte

FSMustByte is the same as FSByte, but panics if name is not present.

func FSMustString Uses

func FSMustString(useLocal bool, name string) string

FSMustString is the string version of FSMustByte.

func FSString Uses

func FSString(useLocal bool, name string) (string, error)

FSString is the string version of FSByte.

Package bindata imports 11 packages (graph) and is imported by 1 packages. Updated 2020-08-06. Refresh now. Tools for package owners.