deps

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: 9 Imported by: 0

Documentation

Overview

包deps包含控制台javascript依赖项go embedded。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

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

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

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 MustAsset

func MustAsset(name string) []byte

mustasset与asset类似,但在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