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