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