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