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