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