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