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