tracers

package
v0.0.0-...-b78b3a4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

包跟踪程序包含实际的javascript跟踪程序资产。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

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

资产加载并返回给定名称的资产。 如果找不到资产或 无法加载。

func AssetDigest

func AssetDigest(name string) ([sha256.Size]byte, error)

assetdigest返回具有给定名称的文件摘要。它返回一个 如果找不到资产或无法加载摘要,则出错。

func AssetDir

func AssetDir(name string) ([]string, error)

assetdir返回某个 通过go bindata嵌入到文件中的目录。 例如,如果对数据/运行go bindata。数据包含 以下层次结构: 数据/ 英尺·txt IMG/ A.PNG B.PNG 然后assetdir(“data”)将返回[]字符串“foo.txt”,“img”, assetdir(“data/img”)将返回[]字符串“a.png”、“b.png”, assetdir(“foo.txt”)和assetdir(“notexist”)将返回错误,以及 assetdir(“”)将返回[]字符串“data”。

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

asset info加载并返回给定名称的资产信息。 如果找不到资产或 无法加载。

func AssetNames

func AssetNames() []string

assetnames返回资产的名称。

func AssetString

func AssetString(name string) (string, error)

asset string以字符串的形式返回资产内容(而不是以[]字节的形式)。

func Digests

func Digests() (map[string][sha256.Size]byte, error)

Digests返回所有已知文件及其校验和的映射。

func MustAsset

func MustAsset(name string) []byte

mustasset与asset类似,但在asset返回错误时会出现恐慌。 它简化了全局变量的安全初始化。

func MustAssetString

func MustAssetString(name string) string

mustassetstring就像assetstring,但当asset返回 错误。它简化了全局变量的安全初始化。

func RestoreAsset

func RestoreAsset(dir, name string) error

restoreset恢复给定目录下的资产。

func RestoreAssets

func RestoreAssets(dir, name string) error

restoresets递归地还原给定目录下的资产。

Types

This section is empty.

Jump to

Keyboard shortcuts

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