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