Documentation
¶
Overview ¶
Code generated for package data by go-bindata DO NOT EDIT. (@generated) sources: .tmp/data/ui/index.html .tmp/data/xgen/setup/index.html .tmp/data/xgen/v0.9/index.html .tmp/data/xgen/v1.0/index.html .tmp/data/xgen/v1.0/layouts__index.async.js .tmp/data/xgen/v1.0/umi.js .tmp/data/yao/apis/README.md .tmp/data/yao/apis/chart.http.json .tmp/data/yao/apis/import.http.json .tmp/data/yao/apis/page.http.json .tmp/data/yao/apis/storage.http.json .tmp/data/yao/apis/table.http.json .tmp/data/yao/apis/user.http.json .tmp/data/yao/apis/xiang.http.json .tmp/data/yao/data/app.json .tmp/data/yao/data/icons/404.png .tmp/data/yao/data/icons/icon.icns .tmp/data/yao/data/icons/icon.ico .tmp/data/yao/data/icons/icon.png .tmp/data/yao/data/index.html .tmp/data/yao/fields/model.trans.json .tmp/data/yao/flows/README.md .tmp/data/yao/flows/admin/guard.flow.json .tmp/data/yao/flows/menu.flow.json .tmp/data/yao/flows/user/find.flow.json .tmp/data/yao/langs/en-US.json .tmp/data/yao/langs/zh-cn/global.yml .tmp/data/yao/langs/zh-cn/logins/admin.login.yml .tmp/data/yao/langs/zh-cn/logins/user.login.yml .tmp/data/yao/langs/zh-hk/global.yml .tmp/data/yao/langs/zh-hk/logins/admin.login.yml .tmp/data/yao/langs/zh-hk/logins/user.login.yml .tmp/data/yao/models/README.md .tmp/data/yao/models/menu.mod.json .tmp/data/yao/models/user.mod.json .tmp/data/yao/models/workflow.mod.json .tmp/data/yao/tables/README.md .tmp/data/yao/tables/menu.tab.json .tmp/data/yao/tables/user.tab.json
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetFile() http.FileSystem
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func Read(name string) ([]byte, error)
- func ReplaceXGen(search, replace string) error
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func Setup() *assetfs.AssetFS
- func XgenV0() *assetfs.AssetFS
- func XgenV1() *assetfs.AssetFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/
foo.txt
img/
a.png
b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetFile ¶
func AssetFile() http.FileSystem
AssetFile return a http.FileSystem instance that data backend by asset
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func ReplaceXGen ¶ added in v0.10.2
ReplaceXGen bindata file
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
This section is empty.