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