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-07-22 16:32:29 +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\xcb\x49\x9f\xa9\xf1\x94\x8b\x22\x21\x99\x13\x8a\x60\x93\x94\x12\x77\xa6\xdf\xfb\xbf\x00\x70\x27\x48\x71\x91\x64\x2d\x5f\x9f\xaa\x33\x1d\x11\x1b\xb1\x5c\xdf\x0f\x40\xe0\xc2\xcf\xbf\x29\x07\xbf\x9d\x79\x5f\x89\xeb\x99\xd4\x1e\x12\x77\x6e\xea\xe4\xb3\xe3\x9b\xd4\xf6\x0e\x2e\x94\x9f\x7f\x53\x94\x83\x79\xb7\xd3\x3d\x0a\xfe\xa1\x1c\x10\x5f\x37\x0e\x2e\x14\x7b\x66\x59\xef\xf8\x0f\xdf\x66\x23\xa2\x39\x66\x18\x40\x39\xd0\x2c\x8b\x7e\x57\x1d\xd7\x9c\x9b\x16\x99\x10\x16\xfa\xc0\x77\x67\xe4\xe0\x5d\xf0\xdc\xa6\xf6\xeb\x94\xce\x3c\x55\x9b\xf9\x2f\xec\xe9\x58\xb3\xbc\xe8\xf1\xc8\xb4\x0d\x55\x33\x0c\x97\x78\xac\x08\x07\x47\x1d\xfe\x7f\xe1\x63\x62\x6b\x23\x8b\xa8\x9a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2f\xd9\xdd\x32\xd5\x3b\x38\x39\x39\x8e\x1f\xf1\x0e\xa1\x6a\xa2\x47\xa8\x16\xa5\xdf\x66\x4e\xb6\xbf\x7a\xa2\x83\xa8\x23\x4d\xff\x46\x6c\xde\x9d\xd9\x20\x88\x52\xf1\x2d\x4f\xd5\x4d\xe7\x85\xb8\xaa\x37\x33\x7d\xd1\x32\x8f\x1f\x87\xcf\x37\x57\xd7\xbf\xde\xb0\xff\x3f\xbc\x7c\xfe\xfd\xf6\xf1\xd7\xe7\xcb\x9b\xe1\x73\xb7\x77\xf6\xfc\xe1\xea\xd3\xf3\xf0\xd7\xcb\x5e\x7f\xf0\xae\x30\x5c\xaf\x3f\x08\xc3\x1d\x9f\x9d\xc8\xc3\x5d\xfd\x7a\x79\xf5\xeb\x65\xef\xe8\xf9\xfe\xf3\xc7\x7f\x76\x8f\x8f\xfa\x89\x60\x0f\x95\x32\x7d\xa8\x94\xe5\x43\x61\x86\x07\xac\x0a\xfe\x8a\x0d\x81\x45\xfc\x84\x21\x28\x1c\xc4\x2d\x4d\x04\xfb\x91\xd8\xbe\xa9\xf3\xc6\x57\x7d\xfa\x8d\xd8\xea\x77\x31\xea\x72\x49\x25\xfb\x89\x3a\xa5\x06\x61\x21\x82\x21\x1a\x06\xd2\x79\xef\xf5\x54\x87\xb8\xea\x1f\x54\x34\x60\x22\x0d\xdd\x36\xd5\x91\x69\xab\x86\xe9\xb2\x47\x87\xd4\xf1\x0f\x75\xdb\x3c\x1c\x99\x76\x32\x08\xeb\x9c\x51\x18\xe2\xeb\x3c\x8c\x4d\xfc\x8e\x11\x1b\xaf\x31\x75\x75\xa2\xda\xd4\x20\x2a\xab\x04\x5d\xf3\x99\x39\x63\x31\xa2\x30\x73\x62\xfb\xea\x1f\x8e\x97\x32\x06\x53\xed\x1b\x51\x4d\x87\x87\xf6\xd4\x99\x6f\x5a\xaa\xfe\xa2\x05\x76\x2f\xf9\xbe\x36\xf1\xbf\x53\xf7\x5b\x60\x16\xd9\x53\xdd\x36\xe3\xd1\xa7\x19\x2a\xb5\xad\xd7\xbc\xb5\x71\x89\x47\xad\x39\x7f\x87\xa8\xfc\xe2\xb7\x0e\xff\x2d\x1a\x0c\x2e\xd1\xa6\xa6\x3d\x61\x21\x6d\xc2\x4d\x99\x6a\x1a\x16\x51\xd9\xf8\xa4\x33\x9e\xe8\xf1\xd1\x14\x83\xe3\xa8\x1f\xd6\xc1\x9c\xbd\x73\x2f\xfa\x17\xb5\x66\x53\x12\xb4\x4f\xd4\x5d\xe6\x9a\x7b\x68\x99\xa3\xc3\x60\x10\x1d\x8a\x50\xa1\xb6\x65\x46\x99\xe3\xd2\x1f\xaf\xf1\x38\x7b\x21\x9a\xe5\xbf\xfc\xa9\x66\x95\xb3\xdb\x3b\xe5\xc3\xae\x9b\x29\x48\x26\xb5\x2b\x6a\xfb\x2e\xb5\x2c\xe2\x56\x1d\xba\xba\xe6\x07\x7d\x58\x37\x0d\x37\xd7\x05\xc5\xe8\x9e\xd9\xbe\x36\x99\x10\x43\xd5\x2d\x3a\xcb\x8d\x70\x61\xc8\x99\x61\xe6\x8f\x55\x97\xce\x82\xce\x91\x1a\xe9\x81\xda\xbf\x50\xcf\x77\x34\xff\x45\x75\x5c\x3a\x37\x99\xc6\xf2\xc2\xa6\xc3\x5a\x81\x8a\x59\x44\xf7\x73\xa3\x82\x15\x76\x4a\x6d\xd3\xa7\x4c\xaa\x34\x9d\xb0\xb1\x6e\x52\x5e\xae\x93\x23\x2f\x92\x4a\x6a\xa8\x64\x2e\x14\x3a\xd9\xa3\xfb\xd3\x44\x98\x42\x39\xf5\x89\x3b\x35\x6d\xcd\x27\x86\xca\x12\x9a\xe8\xa
|
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, "/")...)...)
|
|
|
|
}
|