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