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