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