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