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