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