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