chirpnest/bindata.go

362 lines
100 KiB
Go
Raw Normal View History

2019-12-29 08:50:56 +01:00
// Package main Code generated by go-bindata. (@generated) DO NOT EDIT.
// sources:
// data/code.json
// data/code_obj_sub_type.json
// data/code_obj_type.json
2020-01-02 11:04:48 +01:00
// data/config.json
2019-12-29 08:50:56 +01:00
// data/msg_rules.json
2019-12-29 13:25:00 +01:00
// data/obj_item.json
2019-12-26 06:08:00 +01:00
package main
2019-12-29 08:50:56 +01:00
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
}
// ModTime 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
}
var _dataCodeJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
func dataCodeJsonBytes() ([]byte, error) {
return bindataRead(
_dataCodeJson,
"data/code.json",
)
}
func dataCodeJson() (*asset, error) {
bytes, err := dataCodeJsonBytes()
if err != nil {
return nil, err
}
2020-01-02 11:04:48 +01:00
info := bindataFileInfo{name: "data/code.json", size: 0, mode: os.FileMode(420), modTime: time.Unix(1577935608, 0)}
2019-12-29 08:50:56 +01:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2020-01-02 11:37:24 +01:00
var _dataCode_obj_sub_typeJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x9a\x49\x73\xdb\xb8\x12\xc7\xcf\xf6\xa7\x40\xf9\x9c\x4f\xf0\x6e\x4a\x9c\x38\x79\xf5\x9c\xc5\xcb\xcb\x61\x6a\x8a\x05\x91\x2d\x0a\x09\x08\xd0\x58\x24\xab\xa6\xe6\xbb\x4f\x01\x5c\x44\x61\xb1\xd5\x70\xcd\xb5\x9b\xfa\xe9\x8f\x26\x1a\x40\x37\xf8\xc7\xe5\xc5\x5f\x97\x17\x17\x57\x4c\x18\x5e\xb1\xe6\xea\x3f\xe4\xca\x6a\x50\x57\xef\x9c\x51\xd0\x0e\x9c\xe5\x71\xb6\xc8\xf5\xaf\xca\x1c\x7a\x98\x9f\xbb\xbc\xf8\xfb\x5d\x8c\x68\x2d\xe3\xcd\x29\xe3\xe6\x68\x5a\x42\x86\x27\xd3\x14\x2b\x7e\x0b\xb9\x17\x81\x96\xa5\x71\x49\xea\x74\x9b\xe1\xec\x69\x30\x9e\x9f\x54\x11\x05\xbd\x54\x06\x83\xf1\x52\xab\x08\xe6\x07\xa6\xc9\xbe\x88\x39\xfc\xa2\x52\xf0\x74\x0a\xfd\xce\xe9\x01\xd4\x02\x4a\x14\x3c\x59\xd0\x25\x70\x5a\xff\x7e\x0d\x3e\x3f\x72\x66\x24\xaa\x57\x74\xb7\x61\x4c\x4a\xe4\xcf\xff\x92\x1b\x40\xfc\x2f\xc8\x71\x78\x49\x95\x02\x7d\x8a\xff\xe1\xcc\x44\x81\xb6\x1c\x25\xb8\xb1\xc0\xab\x0d\x6b\xb7\xe6\x94\x77\x6d\x81\x13\x6f\x2f\x80\x6e\x41\xc9\x38\xce\x9f\x41\x49\xa2\x6d\xd7\x51\x75\x28\x89\xad\xa7\x46\x71\x3d\xa1\x22\x63\xd9\x41\x4e\xe5\xd6\xbd\x99\x37\x68\xed\x20\xa7\xf4\x84\x8c\xd4\xcb\xc4\x2e\x16\xfc\x45\xec\x40\x18\x59\xa6\xd3\x11\x23\xa1\x47\x22\x52\x5f\xcf\x38\xa7\x2d\x54\x4c\xd4\xc1\xe4\x1f\x1c\x84\x89\x5a\x76\x4c\xb4\x25\xd0\x56\xa6\x99\x93\x1d\x47\x33\xac\x03\x69\x4d\x1a\x79\xe2\xc4\x71\xf7\x4c\xa4\x99\xb3\x03\xc7\xe3\x52\xeb\x34\xf0\xe8\x39\x8f\x68\x14\x5b\x5b\x93\x78\x39\x0f\x83\xa3\xe8\xe5\x4c\xd0\x68\x0e\x4d\x50\x5a\xbb\xad\x8f\x43\xd3\x42\x62\x27\xcd\x83\xa9\xad\x0d\x93\xa2\xa2\x42\x48\x2b\x6a\x38\xa5\xaf\x06\x2f\x39\xf5\xe2\xc8\xb6\x6f\xe2\x64\x9a\xc0\xb6\x6f\xa8\x81\x92\x8c\x5a\xe2\xa3\xa8\x04\xf8\x63\x70\x3a\x10\xa8\x7f\x71\x33\x34\x11\x74\xd6\x01\x59\xbd\x0d\x1a\x85\xc4\x43\xef\x0a\xb6\xc2\x20\x5f\x6f\x70\x79\xea\xa7\x4c\xb8\x85\x1e\x6d\xe7\x6a\xa8\xa6\xfd\xf2\x29\x54\x43\xbc\xc7\x8d\x0c\x43\xdc\x50\x6d\x52\xfb\xe5\x4a\x81\xa0\xc4\x79\xc9\xc2\x7b\xb6\x4a\xea\x7e\x1e\x29\x5c\x58\xcf\x7c\x83\xb2\x0f\x5e\xde\x64\x38\x77\xdb\x12\xf6\x14\x70\x3b\x5b\xce\x23\xac\xed\x21\x0e\xf6\x3d\x70\x8e\x0d\xb4\x06\xce\x63\xd2\x7b\x7b\xc0\x82\xa4\x6a\x40\xad\xa5\xfc\x1d\xd3\xbe\x4d\xae\x72\x26\xad\x79\x8e\xb9\xc2\x6d\x9e\x7b\x66\xb6\x8d\xa2\xfb\x58\xe6\xcf\xd1\x83\x55\x39\x13\x6b\xd9\x40\x06\xf9\x61\x76\x61\x55\xd6\xbb\xac\xca\x1a\xd8\x0e\xb7\xdc\x6b\x23\xeb\xc4\x0b\xba\x77\x66\xf4\xcc\xf1\xac\x68\x71\x1c\x58\xc8\x97\xd2\x31\x5d\xc7\xb2\x6e\x99\xae\xb1\xaa\x3c\x29\x12\xe5\x49\x48\x4d\x56\xb8\xfd\x25\xaa\xe9\x1e\x9d\xb9\xb0\xa4\x33\x36\x57\x1c\x3d\x28\xda\x00\x19\xd8\xae\x04\xbd\x1b\x8a\x16\xe4\xe0\x67\x7e\xe2\x9c\x90\xe4\x23\x43\x92\x3c\xcd\xdd\x80\x00\xc5\xea\x92\xd3\xdc\xbc\x6f\x44\x7a\x6f\x24\x19\x4a\x2d\xa4\xc2\x56\x49\x0e\x3a\xb1\x0f\xb9\x7a\x90\x78\x27\x36\xa8\x23\x32\x96\xb8\x40\x62\x55\x4e\x79\x98\x52\x3a\x25\x23\x5e\xe8\x98\x91\xbc\xde\x66\xb1\x2b\x5e\x6f\x0b\xb9\xe9\x1c\x1d\xb9\x25\xa9\x3a\x47\x21\x8f\xbd\x83\x52\x6a\x4f\x53\x69\x36\x62\xbf\x53\x7c\x6e\x8d\x5c\x69\x52\xc1\xf5\x3e\xf2\xcd\x94\xc6\x96\x8a\x43\x62\x82\x0d\xd4\x95\x38\x14\xcf\xaf\x5c\x54\x8b\x34\x46\xfa\x8a\x96\xfa\xb5\xd5\x87\xf0\xb0\x31\x59\xce\xed\x5d\xe9\x2a\x33\xc0\x3b\xd0\xd2\xaa\x1a\x34\x29\x1a\xa9\x4f\x9d\x0c\xda\x65\x0e\x74\x87\x32\xb0\xcf\x9d\x0c\xd8\xa7\x4e\x11\x15\x9e\x2c\xeb\x73\xd8\x8f\xce\xe9\x4a\x93\x32\x76\xad\xe8\xc6\xfc\x4b\xec\x81\x0a\x5d\x6f\x0e\xa9\xb3\xc3\xc7\xa3\x03\x75\x12\x49\xe5\xd0\x7d\x71\x0a\x55\x0d\xf4\x52\xb3\xd4\x22\x72\x3d\x78\xd0\x79\x34\x23\xe3\x54\x9a\x90\x48\x95\x35\xd5\x86\x43\x45\x8d\xa1\xa9\xf7\xf4\xc1\xbb\xc9\xca\xbb\xd1\x33\xe0\x84\x1d\x49\x3e\x65\x97\xe9\x36\x54\xb5\x90\x88\xf0\xc8\x7e\xf0\xee\x42\xdd\x23\x3b\xa7\x7b\x64\x97\xe9\x6e\x60\x93\x15\x7d\x0d\x1b\x10\x1a\x0a\x55\x3b\x72\x4e\xf2\x44\xc6\x2e\xb8\x11\xef\x3d\xb2\xdf\x38\x6a\xcb\x8d\xb8\x70\x5e\xe5\x26\x14\x4e\x1b\x3c\xd7\x5b\x2a\xda\x84\xba\x8f\xa3\x07\xbd\xaa\x4e\xc4\x48\xe1\x4c\xc4\x6a\xf4\xeb\x74\x7a\x15\x2d\x5b\xf3\x63\x69\x9e\x85\xae\x70\x32\xca\x1e\x07\x07\x56\xdb\xc4\x8b\xd4\x4d\x3c\xa4\x3e\x21\x2b\x6d\x68\xc7\xc2\x96\xcd\x57\x49\xee\x97\x76\x6c\x33\x41\x03\x55\xf5\x36\xd7\x4f\x58\x7a\x
2019-12-29 08:50:56 +01:00
func dataCode_obj_sub_typeJsonBytes() ([]byte, error) {
return bindataRead(
_dataCode_obj_sub_typeJson,
"data/code_obj_sub_type.json",
)
}
func dataCode_obj_sub_typeJson() (*asset, error) {
bytes, err := dataCode_obj_sub_typeJsonBytes()
if err != nil {
return nil, err
}
2020-01-02 11:37:24 +01:00
info := bindataFileInfo{name: "data/code_obj_sub_type.json", size: 11389, mode: os.FileMode(420), modTime: time.Unix(1577961423, 0)}
2019-12-29 08:50:56 +01:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2020-01-02 11:37:24 +01:00
var _dataCode_obj_typeJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\xd1\xcf\x6a\x84\x30\x10\xc7\xf1\x73\xf2\x14\x92\xb3\x4f\xd0\x6b\x69\x4b\x0b\x3d\xb4\x28\x3d\x94\x45\x46\x9d\x95\x59\x34\x71\xf3\x07\x85\x65\xdf\x7d\x89\xee\x25\x31\xb9\x7e\xfd\xfc\x60\x24\xff\x9c\xdd\x38\x63\x82\xa4\x1d\x1b\xea\xc5\x4b\x21\x9c\x41\x2d\x4a\x1f\x25\x4c\xe8\x4b\xed\x0b\x67\xf7\xf2\x88\x07\x47\x63\x1f\xea\x8f\x2d\xa5\xf9\x64\x86\x10\x7f\xa3\x31\x30\x60\x86\x2f\x10\x5d\xf2\x07\xb9\x43\x16\xd0\x8d\xc6\x59\x69\x7b\x58\x14\xbf\x7b\x4f\x0f\x2f\xaa\x0d\x17\x5f\xaa\xcd\x50\xb2\x38\x85\xf6\xd3\x97\x34\xee\xc0\xd8\x11\x43\xfe\xba\xb7\xf4\xe0\x0c\x14\xfd\xed\xbb\x2f\x69\xec\x24\x29\x19\xea\x4a\x43\x8f\x45\xbd\x7d\x48\x8f\xac\xa6\xd6\x59\x8c\x67\x7b\x4c\x4f\xd6\x39\xd4\x6f\xeb\x8c\x9a\x50\x76\xb9\xc1\xd5\xa1\x89\x9e\xe0\x67\x4b\x99\x93\x0e\xba\x7a\x62\x7e\x7a\x04\x00\x00\xff\xff\xb7\x4e\x39\xa0\x9c\x02\x00\x00")
2019-12-29 08:50:56 +01:00
func dataCode_obj_typeJsonBytes() ([]byte, error) {
return bindataRead(
_dataCode_obj_typeJson,
"data/code_obj_type.json",
)
}
func dataCode_obj_typeJson() (*asset, error) {
bytes, err := dataCode_obj_typeJsonBytes()
if err != nil {
return nil, err
}
2020-01-02 11:37:24 +01:00
info := bindataFileInfo{name: "data/code_obj_type.json", size: 668, mode: os.FileMode(420), modTime: time.Unix(1577961399, 0)}
2019-12-29 08:50:56 +01:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2020-01-02 11:04:48 +01:00
var _dataConfigJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
func dataConfigJsonBytes() ([]byte, error) {
return bindataRead(
_dataConfigJson,
"data/config.json",
)
}
func dataConfigJson() (*asset, error) {
bytes, err := dataConfigJsonBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "data/config.json", size: 0, mode: os.FileMode(420), modTime: time.Unix(1577935730, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _dataMsg_rulesJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\x6d\xaf\x1c\xc7\x75\x27\xfe\xda\xfe\x14\x25\xe6\x0f\xf0\x5e\xf2\xde\x2b\x52\x12\xf5\xc0\x7f\x40\xee\xa5\xa8\x07\x66\x45\x99\x16\x29\x13\x32\x5b\xb9\xa8\xe9\x3e\x33\x5d\x9e\xea\xaa\x66\x55\xf5\x1d\x8e\x44\x03\x44\x1e\x16\xbb\xb0\x13\x65\x65\x6d\x8c\xd8\x32\xb8\x06\x12\xbf\x58\x04\x88\x91\x17\xbb\x46\x80\xfd\x32\xfc\x02\xe6\x47\x58\x9c\x73\xaa\xba\x7b\x66\x7a\x2e\xe7\x2a\x1c\xd9\x72\x2c\x24\xe6\xdc\xee\xea\x7a\x3c\x75\xea\x3c\xfc\xce\xa9\x7b\xdf\xfe\xd6\xa7\xdf\xfe\xd6\xb7\xce\xd4\x4e\xd9\x33\x97\xc5\xa5\x0b\x17\x2e\xec\xe1\xdf\x05\xf8\xdc\x9c\xb9\x2c\xce\xdc\xd2\x72\x0e\x4e\xcc\xa4\x13\x0e\x6a\xeb\xc2\x19\x7a\xef\x1a\x0d\xf8\xfa\xcf\x77\xae\xde\xfa\xd3\x37\xa5\x0f\x1a\xae\xdc\x7b\xfa\xf8\xef\xfe\xdb\xd3\xc7\xbf\xfa\xeb\xa7\x8f\xff\xee\xdf\x9e\x3e\xfe\xd5\x7f\x7d\xfa\xf8\x57\x3f\x7e\xfa\xf8\x9f\xbe\x78\xfa\xf8\xc7\xff\xfd\xe3\xdd\x9d\x2c\xbb\x87\xa5\xdf\x69\x94\x2e\xae\xdc\x3b\xdc\xff\xfe\x85\xfd\x37\x3e\xfe\xf4\xe2\xde\xcb\x3f\xdc\xcd\xb2\x8f\x77\x3f\xbd\xb0\x77\xf1\x87\x58\xe0\x43\x0f\xee\xca\x0e\x16\x90\xfb\x9f\x5c\xd8\x7f\x43\x7c\x7c\x6e\x77\x57\x3c\xf9\xd9\x17\x97\xf1\xed\x61\x08\x32\x9f\x5e\xb9\x87\x1f\x9f\xdf\xed\x9e\xdc\xb4\xc5\x95\x2c\xdb\xd9\xd9\x7f\x98\x65\xe7\x77\xf9\x75\x96\xed\x72\xb5\xe2\xe9\xe3\x9f\xff\x92\x3e\xbf\x0e\x63\x30\x1e\xd2\xf7\xe2\xbd\x63\x7d\x59\xe0\x8b\xf7\xe0\x18\x74\x7a\x9c\x65\xe6\x23\xdb\xe0\x90\x7d\xa3\x83\xb0\x46\x84\x12\xc4\x48\x86\xa0\x61\xac\x40\x17\x97\xb3\xcc\xec\x3c\x7d\xfc\xc5\x3f\xbd\xf5\xa0\xe6\xef\xdf\x7a\x50\xa7\xaf\xe3\x50\xb2\xcc\xec\x9e\xdb\x79\xfa\xf8\xf3\x5f\xbf\x63\x75\xc1\xa5\xf0\xd7\x95\x2c\xdb\xa7\x12\xc3\xc5\x7f\xf2\xab\xdb\xc1\xe6\x53\x2e\x4f\x3f\x4f\xfc\xe0\xc9\x2f\xfe\xf1\xb7\xbf\xf9\xec\xdd\xd8\x8b\x77\x6f\x61\xe1\xa1\x72\x5c\x9b\xac\x94\x91\x57\xb0\xe7\x3f\x8a\x7f\xe0\x18\x83\x75\x50\xec\xf6\xca\xd3\xaa\x3a\x15\xae\xec\x3c\xf9\xd9\x2f\xf1\x87\xca\xa5\x16\x3e\x38\x35\x85\x54\xee\xff\x63\x4a\xa8\xfc\xe4\x28\xcc\x6b\xa2\x06\xa6\x90\x23\x99\x4f\xcf\x7c\xfb\x5b\x3f\xdc\x7b\x16\x6d\x1d\x36\x79\x50\xd6\x08\x69\x8c\x6d\x72\x58\xa2\xac\xf7\x6c\x10\x7f\x42\x2b\x63\x43\xbb\x5c\x3c\xca\x1b\x01\xaa\x2b\x07\xe7\x70\x99\x76\xbe\xdb\x48\xad\xc2\x9c\x5f\xc4\x3f\xe2\xbb\x38\x9e\x37\xad\x29\x14\x36\xc4\x65\xf0\xcf\x85\x02\xb7\x41\x6b\x70\x71\xbe\xe9\xf7\x86\x04\x2d\xda\x09\xbb\xd7\x7d\xfb\x4c\xf2\xe6\x62\x44\xe4\x07\xe7\xf8\x71\x96\x99\x37\x1b\xe7\xc0\x04\x51\x3b\x95\x03\xf7\xe5\x16\xfe\x6c\x47\x5e\xdb\x26\x2f\xb3\x6c\x07\x7c\x96\x61\xdf\xaf\x35\x73\xea\xf4\xfb\xd6\xc0\x43\x2c\x4e\x0f\xbe\x5a\xcf\xe9\xd3\x67\x76\x9c\x4a\x2d\xf4\x1b\xfb\xf1\x96\x29\xc4\x61\x88\x7b\xa0\x9d\xd9\xdb\x41\x86\xc6\x27\x1a\xc6\xdf\xf8\x22\x92\xe2\x55\x7f\xf9\xe0\xdc\xee\x2a\xf9\x48\xa6\x87\x23\xa2\x07\x93\xc3\x46\x44\x74\x47\x55\xcb\x94\x73\xc3\x88\x37\x4b\x19\xc4\x5d\xe9\xbc\x98\x59\xa7\x0b\x61\xec\x2c\x92\x35\x96\x4f\xb4\x83\x1b\xc6\x36\x8e\xe7\xf8\xd3\x97\x7e\xb8\x4b\x2c\xe2\xa6\x32\x4d\x80\xee\x61\x2c\x79\x5d\xce\xbb\x67\x34\xb0\x9b\xd6\x84\xf2\xca\xc1\x79\xfe\xeb\x23\x90\xa9\xa6\x57\xe8\xa3\x2c\x33\x77\x41\x86\x12\x9c\x18\x5b\x07\xb9\xf4\x21\x56\x15\x1f\x63\x37\x9e\xfc\x97\xcf\x7b\x4f\xde\x87\x07\xa1\xed\x1c\xcd\xd2\xc0\x2e\x0b\xaa\x82\x8d\xf7\xd8\x2d\xa5\xb5\x9c\x80\xb8\x61\xf2\xa5\x59\xfa\xc8\x36\x62\x06\x0e\x70\x5b\x5b\xad\x95\x99\x08\xe9\x6c\x63\x0a\x64\x77\x73\xe4\x7e\xa5\x75\x1e\xc4\xac\x04\xfa\x5b\x18\x1b\x54\x0e\x85\xd8\x98\x91\x33\x63\xe6\x71\x0a\x3b\x16\x07\x9f\xf2\xf3\x48\xa4\x3b\x37\xad\x35\x5a\x4d\xca\xf0\xf0\xae\xd5\xe3\x5a\xe6\xd3\x87\xd7\x01\x5c\x69\x9d\x79\x78\xdd\xc9\x89\x35\x3e\x97\x1a\x1e\xde\x2e\xa5\x9b\x06\x80\x50\x3e\xbc\x65\x83\x0c\xf6\xe1\xbb\x6a\x52\x1a\xf0\x61\x77\x57\x70\x65\x22\xb8\x39\x8e\x20\x58\x51\xc7\x11\x4b\xa1\x2d\x72\xad\x63\xfe\xfb\x40\xdc\xb1\xc2\x07\x5b\x8b\x52\x55\x22\xd7\x2a\x9f\x8a\x17\x27\x76\x60\x7e\x63\x05\x47\xca\xe4\x1b\x4d\xf1\x3b\x76\x69\x66\x87\xab\x9d\xd8\x53\x2d\xd8\x4a\xad\xb8\x5e\x5a\x8d\x83\x68\x6a\x5e\x1e\x3f\xb3\xae\x10\xd2\x14\x22\x2f\xa5\xc3\x11\x07\x3a\xa6\x8e\x95\xd5\x32\x58\x77\x70\xc2\xd8\x4e\xd9\x99\xbb\xca\x0c\xf4\xc6\x37\x79\x0e\xde\x8f\x1b\xad\xe7\xa2\x
2019-12-29 08:50:56 +01:00
func dataMsg_rulesJsonBytes() ([]byte, error) {
return bindataRead(
_dataMsg_rulesJson,
"data/msg_rules.json",
)
}
func dataMsg_rulesJson() (*asset, error) {
bytes, err := dataMsg_rulesJsonBytes()
if err != nil {
return nil, err
}
2020-01-02 11:04:48 +01:00
info := bindataFileInfo{name: "data/msg_rules.json", size: 61490, mode: os.FileMode(420), modTime: time.Unix(1577935608, 0)}
2019-12-29 13:25:00 +01:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2020-01-02 11:04:48 +01:00
var _dataObj_itemJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x9d\xdd\x6e\x1c\x39\x76\xc7\xaf\x3d\x4f\x41\xf4\x8d\x6f\x14\xac\x5b\x52\xb7\x3f\xee\x2c\xd9\x96\x66\xc7\x9a\xd5\xaa\x9d\x35\x92\xc1\x60\x40\x55\xb3\xbb\xb8\xaa\x2a\xf6\xb2\xaa\x24\x2b\x03\x03\x41\x6e\x83\x64\x81\x0c\xf2\xb1\x40\x00\x5f\xe6\x15\xf6\x79\xe6\x05\x76\x1e\x21\xe8\xfa\xea\xae\xd6\x69\x4f\x91\xff\x43\xfb\xca\xc5\xd6\xc7\x4f\xac\x43\xfe\x0f\x59\x3c\xff\xfa\xee\x2b\x21\x7e\xfc\x4a\x08\x21\x46\xba\x50\xe9\x0f\xc5\xfd\x4a\x8d\x5e\x34\x17\x56\xe5\xa3\x83\xfa\xc3\xc8\xcc\xab\xf6\x27\xe3\xb6\xe5\x4e\xe9\x65\x5c\xac\xdb\xba\x26\xf5\x21\x8a\x65\xb6\xac\xbe\xf0\x37\xc5\x0f\x9b\xaf\x95\x65\x54\x68\x93\xad\xdb\x17\x32\xc9\x55\xdb\x9e\xc9\x54\xe5\xa3\x17\xe2\xbb\xd1\xbb\xd8\x2a\x39\x1f\x7d\xff\x95\x10\x1f\x0f\x5c\x99\x0e\x1d\x98\x0e\x87\x33\xcd\x0a\x1d\xdd\x78\x22\x1d\x39\x20\x1d\x0d\x47\xba\x54\x49\xe1\x49\x74\xec\x40\x74\x3c\x9c\xe8\xc4\x64\xca\x93\x68\xe2\x40\x34\x19\x4e\x74\x6a\x64\xe2\x49\x34\x75\x20\x9a\x3a\x10\xc5\xd2\x46\xfe\x54\x4f\x1d\xa8\x9e\x3a\xc4\x92\xb9\x9b\x2b\xeb\xc9\xf4\xec\x21\xd3\xe1\x3e\xa6\x67\xc3\x99\xbe\xb6\x26\x13\xbf\xb3\x6a\x74\x50\xff\xd7\x58\xdf\xe0\x7a\xee\xd0\x69\xcf\x1d\x6e\x65\x62\x8a\xd8\x0f\x69\xfc\x64\x78\x9f\x6d\xbe\x76\xc0\x34\xa5\x93\x5b\x65\x9b\x5e\x6b\x2e\xbc\xfb\x6d\xfc\x84\xa0\x7c\x42\x51\xba\x04\x5a\x19\xc5\xc2\x2c\xc4\x99\x49\x3c\xa7\xf8\x31\x21\x3b\x7b\xfb\xce\x41\x76\x4e\x64\xf9\x41\x17\xbe\x7d\x45\xe8\x0e\x09\xe5\x32\x77\xd9\xf9\xe8\xfb\xf6\xf7\x58\xb9\x58\xff\xd0\x1f\x47\x51\x3a\xaf\xfe\xb8\xaa\xe5\x87\xee\xf7\x6e\xfe\x8d\x52\x99\xc9\xd1\x0b\x31\x9e\xd4\x9f\x3c\x7a\xd4\xfc\x11\xf9\xe8\xc5\x77\x3f\x56\xff\x6b\xd5\x5b\x8c\xfe\x54\xca\xac\xd0\xc5\xfd\xe8\x85\x78\xfa\x71\xf7\x27\xd5\xff\x1e\x6d\xbe\x67\xfc\x7c\xe7\x7b\xc6\x1f\xbf\xff\xe8\xd5\x5d\x0e\x9a\x38\x76\xd0\xc4\x0b\xb9\xd4\x91\x98\x15\x6b\x21\x3a\x68\xae\xf2\xc2\x5b\x96\xc6\x84\x50\x82\x77\xf5\xbd\x31\x73\x95\x89\x59\xbc\xbe\x9f\x07\xed\x65\x5e\x5d\xfa\x31\x12\xd2\xb9\x77\x38\x38\x48\xe7\x4c\xae\x56\xb1\xf6\x9e\x3b\x08\xf9\xdc\x4b\xe5\x20\x9f\x33\x93\xdc\xaa\xcc\xb7\xab\x08\xf5\xdc\x0b\xe5\xa0\x9e\x57\xe5\xf5\xbd\x27\x91\x83\x76\x8e\x1d\xb4\xf3\x5c\xda\xb9\xca\x7c\x15\x7d\x4c\x08\xe6\x5e\x2a\x07\xc1\x9c\x15\x4a\x79\x26\x3e\x87\x84\x14\xed\x9b\x30\x0e\x1d\x04\xf3\xad\x92\x45\xec\xdb\x4f\x87\x0e\x0b\xa0\x43\x17\x25\x32\x99\x12\x4d\x4a\x76\x50\x5f\xad\x80\x04\xed\xd0\x61\x4d\x74\xe8\xb4\x26\xb2\x3a\x5b\x7a\x32\x39\x08\xc0\xa1\x83\x00\x9c\x9a\x1b\xcf\x19\xeb\x70\xe8\xa2\xc8\x21\xd9\x29\xad\x5e\x68\x35\xdf\xdc\xcb\xae\x05\xba\x9f\xc4\x8c\x7f\x84\x91\x36\xa9\xe2\xcb\x24\x31\xf7\x9b\xcc\x51\x56\x97\x7e\x8c\x43\xa7\x5a\xc7\xd9\x43\x5c\xac\xf3\xc6\x83\xe6\x22\xf5\x4e\x22\x0f\x87\x4e\xbc\xce\x7d\xd8\x02\xd6\x57\x00\x21\x31\x09\x83\x77\xf9\x24\x91\xd1\x4d\x9e\xea\x22\x16\x6f\xac\x4c\xd7\x29\xd2\x56\xd3\xa2\x6a\xf2\x62\x3d\x22\x66\x67\x90\xf5\xa5\x2d\x74\x2e\xb3\x0e\xb4\xbd\x46\x28\x1d\xa6\xeb\x23\x87\xe9\xfa\xca\xac\x7c\x89\xf8\x57\x0d\x4d\xdc\xb5\xdd\xd6\x5c\x22\xbd\x46\xcc\xd4\xfb\x92\x81\x23\x97\x54\x5d\x15\x32\x11\x97\x89\x2c\xaa\x54\xbd\xba\x5a\x55\x57\x7e\x98\x43\x53\xf5\x35\xa6\xc3\x9e\x56\x05\x96\xe8\x48\xbc\xd1\xd7\xd5\x14\xde\x35\x2c\xaa\x06\x3f\x58\x87\xed\xae\x23\x97\xed\xae\xf5\x9a\x50\xcd\x45\x9b\xd5\x1c\x74\x2d\x09\x92\xe7\x1c\x0d\x4d\xe6\x87\x93\xfe\xbe\x94\x89\x2e\xee\x05\xb0\x87\x72\x44\x48\x0c\xdf\x04\x79\xe1\x3d\x71\x1f\x11\xd2\xc2\x34\x19\x0e\x84\x92\x49\x14\x3f\xa0\x72\xd8\x04\x3b\x72\xca\xe9\x75\x76\x73\x2f\x66\x65\x2a\x23\x4f\xb4\x63\x87\xdc\xfe\xd8\x21\xb7\xbf\x50\x36\xba\x17\x33\x99\xe7\x72\x61\x65\xee\x4b\xe7\xa0\x1a\xc7\x0e\xaa\x71\x9a\xe8\xc5\x42\x5c\x95\x43\xe6\x3b\x92\xcb\x21\xab\x3f\x76\xc8\xea\xdf\x9a\x5b\x25\x4e\xad\x52\xab\x41\xd3\x05\x89\xe6\x90\xdc\x1f\x3b\x48\xc6\x7b\x93\x2c\xc4\x95\x31\x43\x96\xff\x24\x97\xc3\x73\x8f\x63\x07\x8d\x98\xdd\xc9\x74\x25\xde\xca\x5b\x95\x0d\x4b\xea\x49\x38\x07\x4d\x38\x76\xd0\x84\xf7\xb1\x2e\x94\x38\x49\x4c\x9e\x9b\xd4\x97\xcd\xe1\x61\xc8\xb1\xc3\x6e\xce\xd7\x89\xbc\x55\xde\x03\xd3\xe1\x59\xc8\xb1\xc3\x6e\xce\xeb\x55\xac\xff\x68\xac\xf4\xc5\x22\xa6\xff\xbd\x58\x0e\x5b\x3a\xb3\xc2\xd8\x54\x9
2019-12-29 13:25:00 +01:00
func dataObj_itemJsonBytes() ([]byte, error) {
return bindataRead(
_dataObj_itemJson,
"data/obj_item.json",
)
}
func dataObj_itemJson() (*asset, error) {
bytes, err := dataObj_itemJsonBytes()
if err != nil {
return nil, err
}
2020-01-02 11:04:48 +01:00
info := bindataFileInfo{name: "data/obj_item.json", size: 83412, mode: os.FileMode(420), modTime: time.Unix(1577935608, 0)}
2019-12-29 08:50:56 +01: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/code.json": dataCodeJson,
"data/code_obj_sub_type.json": dataCode_obj_sub_typeJson,
"data/code_obj_type.json": dataCode_obj_typeJson,
2020-01-02 11:04:48 +01:00
"data/config.json": dataConfigJson,
2019-12-29 08:50:56 +01:00
"data/msg_rules.json": dataMsg_rulesJson,
2019-12-29 13:25:00 +01:00
"data/obj_item.json": dataObj_itemJson,
2019-12-29 08:50:56 +01:00
}
// 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{
"code.json": &bintree{dataCodeJson, map[string]*bintree{}},
"code_obj_sub_type.json": &bintree{dataCode_obj_sub_typeJson, map[string]*bintree{}},
"code_obj_type.json": &bintree{dataCode_obj_typeJson, map[string]*bintree{}},
2020-01-02 11:04:48 +01:00
"config.json": &bintree{dataConfigJson, map[string]*bintree{}},
2019-12-29 08:50:56 +01:00
"msg_rules.json": &bintree{dataMsg_rulesJson, map[string]*bintree{}},
2019-12-29 13:25:00 +01:00
"obj_item.json": &bintree{dataObj_itemJson, map[string]*bintree{}},
2019-12-29 08:50:56 +01:00
}},
}}
// 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, "/")...)...)
}