go.opencensus.io: go.opencensus.io/zpages/internal Index | Files

package internal

import "go.opencensus.io/zpages/internal"

Index

Package Files

gen.go resources.go

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 internal imports 9 packages (graph) and is imported by 1 packages. Updated 2018-04-11. Refresh now. Tools for package owners.