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