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