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