Documentation ¶
Overview ¶
Code generated for package data by go-bindata DO NOT EDIT. (@generated) sources: .tmp/data/init/README.md .tmp/data/init/aigcs/translate.ai.yml .tmp/data/init/apis/aigc.http.yao .tmp/data/init/app.yao .tmp/data/init/charts/pet.chart.yao .tmp/data/init/connectors/openai/gpt-3_5-turbo.conn.yao .tmp/data/init/connectors/openai/text-embedding-ada-002.conn.yao .tmp/data/init/connectors/openai/whisper-1.conn.yao .tmp/data/init/dashboards/kanban.dash.yao .tmp/data/init/flows/app/menu.flow.yao .tmp/data/init/flows/stat/data.flow.yao .tmp/data/init/forms/admin/user.form.yao .tmp/data/init/forms/demo/pet.form.yao .tmp/data/init/icons/app.icns .tmp/data/init/icons/app.ico .tmp/data/init/icons/app.png .tmp/data/init/langs/zh-cn/global.yml .tmp/data/init/langs/zh-hk/global.yml .tmp/data/init/logins/admin.login.yao .tmp/data/init/logins/user.login.yao .tmp/data/init/models/admin/user.mod.yao .tmp/data/init/models/pet.mod.yao .tmp/data/init/neo/neo.yml .tmp/data/init/public/demo/pet.html .tmp/data/init/public/index.html .tmp/data/init/scripts/dash.js .tmp/data/init/scripts/guard.js .tmp/data/init/scripts/setup.js .tmp/data/init/scripts/stat.js .tmp/data/init/services/foo.js .tmp/data/init/studio/hello.js .tmp/data/init/tables/admin/user.tab.yao .tmp/data/init/tables/demo/pet.tab.yao .tmp/data/public/index.html .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/import.http.json .tmp/data/yao/apis/storage.http.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/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/release/app.yaz
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 ReadApp() (io.Reader, error)
- func RemoveApp()
- 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.