2020-02-13 22:55:19 +00:00
|
|
|
// Code generated for package data by go-bindata DO NOT EDIT. (@generated)
|
|
|
|
// sources:
|
|
|
|
// data/data.json
|
|
|
|
package data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"compress/gzip"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io/ioutil"
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func bindataRead(data []byte, name string) ([]byte, error) {
|
|
|
|
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
|
|
}
|
|
|
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
_, err = io.Copy(&buf, gz)
|
|
|
|
clErr := gz.Close()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
|
|
}
|
|
|
|
if clErr != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
return buf.Bytes(), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type asset struct {
|
|
|
|
bytes []byte
|
|
|
|
info os.FileInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
type bindataFileInfo struct {
|
|
|
|
name string
|
|
|
|
size int64
|
|
|
|
mode os.FileMode
|
|
|
|
modTime time.Time
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name return file name
|
|
|
|
func (fi bindataFileInfo) Name() string {
|
|
|
|
return fi.name
|
|
|
|
}
|
|
|
|
|
|
|
|
// Size return file size
|
|
|
|
func (fi bindataFileInfo) Size() int64 {
|
|
|
|
return fi.size
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mode return file mode
|
|
|
|
func (fi bindataFileInfo) Mode() os.FileMode {
|
|
|
|
return fi.mode
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mode return file modify time
|
|
|
|
func (fi bindataFileInfo) ModTime() time.Time {
|
|
|
|
return fi.modTime
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsDir return file whether a directory
|
|
|
|
func (fi bindataFileInfo) IsDir() bool {
|
|
|
|
return fi.mode&os.ModeDir != 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sys return file is sys mode
|
|
|
|
func (fi bindataFileInfo) Sys() interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-08-04 17:59:38 +00:00
|
|
|
var _dataDataJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x69\x73\xdb\x38\xba\xff\x0f\x3f\x9f\x57\xc1\xf2\x3c\x98\xfb\x3e\x15\xca\x96\x6c\xc9\x4b\xd5\xef\x81\xdb\x76\xd2\xae\x4e\x1c\x1f\xdb\x49\x9f\xa9\xf1\x94\x8b\x26\x21\x99\x13\x8a\x60\x93\x94\x12\x77\xa6\xdf\xfb\xbf\x00\x70\x27\x48\x81\xd4\x62\x2d\x5f\x9f\xaa\x33\x1d\x11\x1b\xb1\x5c\xdf\x0f\x40\xe0\xc2\xcf\xbf\x69\x7b\xbf\x9d\x04\x5f\x89\x1f\xd8\xd4\xbd\x27\xfe\xd4\x36\xc9\x67\x2f\xb4\xa9\x1b\xec\x9d\x69\x3f\xff\xa6\x69\x7b\xd3\x6e\xa7\x7b\x10\xfd\x43\xdb\x23\xa1\x69\xed\x9d\x69\xee\xc4\x71\xde\xf1\x1f\xbe\x4d\x9e\x89\xe1\xd9\x71\x00\x6d\xcf\x70\x1c\xfa\x5d\xf7\x7c\x7b\x6a\x3b\x64\x44\x58\xe8\xbd\xd0\x9f\x90\xbd\x77\xd1\x73\x97\xba\xaf\x63\x3a\x09\x74\x63\x12\xbe\xb0\xa7\x43\xc3\x09\x92\xc7\xcf\xb6\x6b\xe9\x86\x65\xf9\x24\x60\x45\xd8\x3b\xe8\xf0\xff\x8b\x1f\x13\xd7\x78\x76\x88\x6e\x58\x63\x3b\x60\x65\xd6\x3d\x67\x32\xb2\x79\x69\xf7\x6e\x8c\x31\x09\x3c\xc3\x24\x1f\xed\x21\x31\x5f\x4d\x87\xbc\xfb\x68\x8f\xed\xf0\xce\x70\x47\xc4\x7f\x17\xbd\xde\xb9\x69\xd2\x89\x1b\xbe\xbb\x24\x43\x63\xe2\x84\xf7\x21\xf5\x8d\x11\xb9\x70\x8c\x20\x88\x7f\x7b\xa0\x0e\xf1\x8d\x90\x57\x89\x49\x5d\x2b\x78\xf7\x69\x12\x1a\xa1\xed\x8e\xce\xe3\x7c\x7f\x27\xcf\x2f\x94\x7e\x7b\xf7\xd5\x70\x6c\x4b\xfe\xe8\x8e\x04\x74\xe2\x9b\xe4\x7f\x27\x34\x34\xde\xdd\x50\x8b\xdc\x91\x20\xf4\x6d\x93\x25\x1c\xbf\x8f\xed\x06\xc4\x9c\xf8\x44\xf7\xa8\x1f\xf2\xf7\x8d\x9f\xb0\x8a\x75\x48\xa8\x7b\x3e\x19\x12\xdf\x27\x49\xad\xe8\xe1\xab\x47\xf8\x0b\x5f\xbb\x21\xf1\x5d\xc3\xb9\xbe\x7d\x77\xf5\x23\xf9\xcf\x5f\x69\x10\xba\xc6\x38\xa9\x51\xcf\xa7\x43\xdb\xb1\xdd\x51\xa9\xae\x7d\xf2\xc7\x84\x04\xe1\x0b\x31\x2c\xe2\xeb\xe4\x47\xe8\x1b\xba\xf8\x47\xc0\xb3\xb5\x7f\xb0\x28\xff\xa7\xdf\x91\x31\x0d\x89\x7e\xc5\x03\xc8\x23\x8f\x7c\x3a\xf1\xe2\xc8\xb9\x58\x1f\xd8\x13\x79\xa4\x49\xc0\xca\x3c\x26\xd2\x78\x5f\x02\xe2\x27\xd1\x26\x6e\x68\x8f\x89\x6e\x52\x77\x68\xf3\xf7\x60\x7d\x87\xfa\xf6\x9f\xbc\x95\x3a\xdf\x4e\x82\x8e\x4d\xf7\xa7\xdd\x67\x12\x1a\xdd\xff\x97\xed\x6e\x85\xea\x1d\x1c\x1d\x1d\xa6\x8f\x78\x87\xd0\x0d\xd1\x23\x74\x87\xd2\x6f\x13\xaf\xd8\x5f\x03\xd1\x41\xf4\x67\xc3\xfc\x46\x5c\xde\x9d\xd9\x20\x48\x52\x09\x9d\x40\x37\x6d\xef\x85\xf8\x7a\x30\xb1\x43\xd1\x32\x0f\x1f\xef\x9f\xae\x2e\x2e\x7f\xbd\x62\xff\xff\xfe\xfc\xe9\xf7\xeb\x87\x5f\x9f\xce\xaf\xee\x9f\xba\xbd\x93\xa7\x0f\x17\x9f\x9e\xee\x7f\x3d\xef\xf5\x07\xef\x2a\xc3\xf5\xfa\x83\x38\xdc\xe1\xc9\x91\x3c\xdc\xc5\xaf\xe7\x17\xbf\x9e\xf7\x0e\x9e\x6e\x3f\x7f\xfc\x67\xf7\xf0\xa0\x9f\x09\x76\xa7\x94\xe9\x9d\x52\x96\x77\x95\x19\xee\xb1\x2a\xf8\x2b\x35\x04\x0e\x09\x33\x86\xa0\x72\x10\xcf\x69\x22\xd8\x8f\xc4\x0d\x6d\x93\x37\xbe\x1e\xd2\x6f\xc4\xd5\xbf\x8b\x51\x57\x4a\x2a\xdb\x4f\xf4\x31\xb5\x08\x0b\x11\x0d\xd1\x38\x90\xc9\x7b\x6f\xa0\x7b\xc4\xd7\xff\xa0\xa2\x01\x33\x69\x98\xae\xad\x3f\xdb\xae\x6e\xd9\x3e\x7b\xb4\x4f\xbd\x70\xdf\x74\xed\xfd\x67\xdb\xcd\x06\x61\x9d\x33\x09\x43\x42\x93\x87\x71\x49\xd8\xb1\x52\xe3\x35\xa4\xbe\x49\x74\x97\x5a\x44\x67\x95\x60\x1a\x21\x33\x67\x2c\x46\x12\x66\x4a\xdc\x50\xff\xc3\x0b\x72\xc6\x60\x6c\x7c\x23\xba\xed\xf1\xd0\x81\x3e\x09\x6d\x47\x37\x5f\x8c\xc8\xee\x65\xdf\xd7\x25\xe1\x77\xea\x7f\x8b\xcc\x22\x7b\x6a\xba\x76\x3a\xfa\x0c\x4b\xa7\xae\xf3\x5a\xb6\x36\x3e\x09\xa8\x33\xe5\xef\x90\x94\x5f\xfc\xd6\xe1\xbf\x25\x83\xc1\x27\xc6\xd8\x76\x47\x2c\xa4\x4b\xb8\x29\xd3\x6d\xcb\x21\x3a\x1b\x9f\x74\xc2\x13\x3d\x3c\x18\x63\x70\x1c\xf4\xe3\x3a\x98\xb2\x77\xee\x25\xff\xa2\xce\x64\x4c\xa2\xf6\x49\xba\xcb\xd4\xf0\xf7\x1d\xfb\x79\x3f\x1a\x44\xfb\x22\x54\xac\x6d\x85\x51\xe6\xf9\xf4\xc7\x6b\x3a\xce\x5e\x88\xe1\x84\x2f\x7f\xea\x45\xe5\xec\xf6\x8e\xf9\xb0\xeb\x16\x0a\x52\x48\xed\x82\xba\xa1\x4f\x1d\x87\xf8\xaa\x43\xd7\x34\xc2\xa8\x0f\x9b\xb6\xe5\x97\xba\xa0\x18\xdd\x13\x37\x34\x46\x23\x62\xe9\xa6\x43\x27\xa5\x11\x2e\x0c\x39\x33\xcc\xfc\xb1\xee\xd3\x49\xd4\x39\x72\x23\x3d\x52\xfb\x17\x1a\x84\x9e\x11\xbe\xe8\x9e\x4f\xa7\x36\xd3\x58\x5e\xd8\x7c\x58\x27\x52\x31\x87\x98\x61\x69\x54\xb0\xc2\x8e\xa9\x6b\x87\x94\x49\x95\x61\x12\x36\xd6\x6d\xca\xcb\x75\x74\x10\x24\x52\x49\x2d\x9d\x4c\x85\x42\x67\x7b\x74\x7f\x9c\x09\x53\x29\xa7\x21\xf1\xc7\xb6\x6b\x84\xc4\xd2\x59\x42\x2
|
2020-02-13 22:55:19 +00:00
|
|
|
|
|
|
|
func dataDataJsonBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_dataDataJson,
|
|
|
|
"data/data.json",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
func dataDataJson() (*asset, error) {
|
|
|
|
bytes, err := dataDataJsonBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2022-07-22 16:32:29 +00:00
|
|
|
info := bindataFileInfo{name: "data/data.json", size: 3638458, mode: os.FileMode(420), modTime: time.Unix(1557785965, 0)}
|
2020-02-13 22:55:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 Asset(name string) ([]byte, error) {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
|
|
a, err := f()
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
|
|
|
|
}
|
|
|
|
return a.bytes, nil
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MustAsset is like Asset but panics when Asset would return an error.
|
|
|
|
// It simplifies safe initialization of global variables.
|
|
|
|
func MustAsset(name string) []byte {
|
|
|
|
a, err := Asset(name)
|
|
|
|
if err != nil {
|
|
|
|
panic("asset: Asset(" + name + "): " + err.Error())
|
|
|
|
}
|
|
|
|
|
|
|
|
return a
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 AssetInfo(name string) (os.FileInfo, error) {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
|
|
a, err := f()
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
|
|
|
|
}
|
|
|
|
return a.info, nil
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("AssetInfo %s not found", name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssetNames returns the names of the assets.
|
|
|
|
func AssetNames() []string {
|
|
|
|
names := make([]string, 0, len(_bindata))
|
|
|
|
for name := range _bindata {
|
|
|
|
names = append(names, name)
|
|
|
|
}
|
|
|
|
return names
|
|
|
|
}
|
|
|
|
|
|
|
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
|
|
|
var _bindata = map[string]func() (*asset, error){
|
|
|
|
"data/data.json": dataDataJson,
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 AssetDir(name string) ([]string, error) {
|
|
|
|
node := _bintree
|
|
|
|
if len(name) != 0 {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
pathList := strings.Split(cannonicalName, "/")
|
|
|
|
for _, p := range pathList {
|
|
|
|
node = node.Children[p]
|
|
|
|
if node == nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if node.Func != nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
rv := make([]string, 0, len(node.Children))
|
|
|
|
for childName := range node.Children {
|
|
|
|
rv = append(rv, childName)
|
|
|
|
}
|
|
|
|
return rv, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type bintree struct {
|
|
|
|
Func func() (*asset, error)
|
|
|
|
Children map[string]*bintree
|
|
|
|
}
|
|
|
|
|
|
|
|
var _bintree = &bintree{nil, map[string]*bintree{
|
|
|
|
"data": &bintree{nil, map[string]*bintree{
|
|
|
|
"data.json": &bintree{dataDataJson, map[string]*bintree{}},
|
|
|
|
}},
|
|
|
|
}}
|
|
|
|
|
|
|
|
// RestoreAsset restores an asset under the given directory
|
|
|
|
func RestoreAsset(dir, name string) error {
|
|
|
|
data, err := Asset(name)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
info, err := AssetInfo(name)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// RestoreAssets restores an asset under the given directory recursively
|
|
|
|
func RestoreAssets(dir, name string) error {
|
|
|
|
children, err := AssetDir(name)
|
|
|
|
// File
|
|
|
|
if err != nil {
|
|
|
|
return RestoreAsset(dir, name)
|
|
|
|
}
|
|
|
|
// Dir
|
|
|
|
for _, child := range children {
|
|
|
|
err = RestoreAssets(dir, filepath.Join(name, child))
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _filePath(dir, name string) string {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
|
|
|
}
|