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