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