data

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

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

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

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

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

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

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 AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func Read added in v0.10.2

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

Read file from bin

func ReadApp added in v0.10.3

func ReadApp() (io.Reader, error)

ReadApp read app from bin

func RemoveApp added in v0.10.3

func RemoveApp()

RemoveApp remove app from bin

func ReplaceXGen added in v0.10.2

func ReplaceXGen(search, replace string) error

ReplaceXGen bindata file

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

func Setup added in v0.10.2

func Setup() *assetfs.AssetFS

Setup Setup ui

func XgenV0 added in v0.10.2

func XgenV0() *assetfs.AssetFS

XgenV0 XGen 0.9

func XgenV1 added in v0.10.2

func XgenV1() *assetfs.AssetFS

XgenV1 XGen 1.0

Types

This section is empty.

Jump to

Keyboard shortcuts

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