zardoz/bindata.go

238 lines
199 KiB
Go
Raw Permalink Normal View History

2020-10-08 15:53:05 -04:00
// Code generated by go-bindata.
// sources:
// assets/message.txt
// DO NOT EDIT!
package main
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
}
func (fi bindataFileInfo) Name() string {
return fi.name
}
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
func (fi bindataFileInfo) IsDir() bool {
return false
}
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _assetsMessageTxt = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\xfb\xc7\xce\x84\x40\xb6\x2d\x0c\xce\xeb\x29\xaa\x47\x3d\xc8\x7b\x95\x78\x73\x6e\xf5\x91\x02\x48\xbc\xf7\x30\xc3\x7b\xef\x69\xf5\xbb\xb7\xbe\xaa\xf3\x0f\x5a\xea\xd9\x9f\x12\x04\x44\xae\x88\xd8\x39\xc8\xb5\xf6\xda\x04\xff\xfa\x7f\x70\x06\xeb\x46\xe6\xef\x9f\xf5\x3e\xf4\xff\xfd\x8f\x7f\xfd\x5f\x4d\x91\xe4\xff\xfd\x8f\x7f\xed\xcd\xde\x17\xff\x1d\x03\x9b\x33\xe2\x7f\x3a\x20\x72\xfe\xeb\x5f\xdf\xff\xf4\xfd\xe3\x5f\xd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1\xff\xde\x91\x7e\x2f\x00\x6c\x16\x08\x2b\x38\x23\x0e\x38\x12\x00\xf5\x8f\x01\xf7\x8f\xf9\x52\x16\x10\x2d\x00\x00\xc8\x18\x60\xfd\xc0\xff\xef\xe7\xc7\x82\xcb\xe2\x99\x2a\x93\xd8\xf2\xfb\x03\x3f\xc9\x02\x40\x62\xc0\xa5\xb1\x0c\xf0\x58\x70\x65\x1c\xb8\x34\x1e\x58\x7f\x38\xf0\xfb\x59\x9e\x23\x59\xd1\xfd\x83\x78\x3b\xb2\x32\x4f\x1a\x05\x46\x9b\x7f\xad\xb5\xfc\x24\xde\xb1\x5e\x6f\x15\x19\x7e\x50\x6d\x0b\x55\x6b\xb9\xe4\x6e\x1e\xb2\xdd\x0c\x53\x9a\xbf\x18\x84\xea\xf7\xb7\xfe\x7f\x8e\xff\x7f\x31\x9c\xdf\x1f\x60\x33\x1b\x00\x89\x05\x95\x06\x40\x25\x71\xc0\x02\xdc\xff\x80\x18\x50\xff\x38\xc9\x96\x6e\xcb\xd6\x6d\x86\x95\x3c\x6d\xe0\x6f\x09\x92\x9d\x2f\x3d\x01\x0e\x68\x0c\x00\x92\x0d\xee\x1f\x30\x2f\x0e\x06\x6e\x53\x09\x53\xa3\xa8\x8c\x9e\x68\xec\x8e\x24\x42\x59\x74\xd1\x74\xdf\xd6\x54\x8e\x4e\x95\xb8\xd6\x57\x67\x9b\x43\xe1\x65\xd2\xd3\xb0\x09\xd0\xfb\x0f\x24\x66\x3e\x8a\x3c\x10\xdf\xc9\xe3\x41\x3c\x6d\x4d\x4b\xc2\x40\xbc\x6d\x4e\x4c\x2a\xce\x92\x97\x4a\x6b\x6a\x27\x47\x79\x2e\x1f\x2a\x5e\xa8\x38\xc7\x49\x54\x53\x50\x3c\xe6\xf2\x8a\x24\x65\xa6\x74\x01\xd9\x14\xcf\x02\xd1\xbe\xde\xc4\x52\x10\x48\xd2\x77\x68\xdf\xdb\xa9\xd4\xd7\x7a\xdd\x02\xc3\xa6\xf4\xb8\x67\x4b\xd4\x3e\xbd\x38\x0c\x97\x6b\xff\x46\x5e\x01\xe4\x50\x0f\x43\xe5\xe2\x43\xfb\x3a\x95\x11\x4f\xf1\x7c\xea\xca\x6b\xb1\x14\x05\x29\xf6\x50\x7b\x60\x1b\x6a\xc7\x72\x2d\x66\x62\x7c\xb6\x99\x28\x0f\x28\x46\x4d\x13\xef\x70\xe6\x71\x6e\x26\x46\xbb\x9a\x4b\x3f\xa5\x7d\xc1\x00\xd9\x3e\x65\x5a\xf3\x05\xe8\x78\x66\x9d\x16\xda\x89\xc0\xc3\xf5\x0b\x78\x7a\xed\xfa\xb1\xb5\xd3\x00\x6d\x7a\x0a\x2d\x89\xcb\xbc\x43\xe1\xb3\x94\x4d\x4f\x39\xba\x76\x9c\xdc\x99\xc2\x6b\xa4\x3f\x75\xdb\x02\xbf\x26\x45\x3e\x3b\x87\x26\xc7\xbe\xed\xd3\x15\x87\xc2\x17\xd6\x67\xf8\xb6\x36\xfc\x83\xa6\x9d\x76\x61\xc1\x87\xe3\x43\x66\x2a\xbe\x3c\x43\x17\x2f\x66\xbd\x28\xe0\xe0\x03\xa1\x81\x78\x30\x3b\x2a\x48\x9d\x98\xd3\x4b\xa9\x54\xd4\xaf\xcb\x77\xe9\xb5\xa3\xb5\x2f\x6d\xf4\xb6\x6a\x58\x70\xf1\x84\xc4\xfb\xb0\xee\x53\xf6\xe0\xe8\xd3\x38\x1a\x44\xd8\x88\xb2\x8c\x7f\xfc\x73\x50\x59\x2f\x18\x82\x88\xad\xd3\x2c\x8f\x8a\x27\xdb\xa4\xfc\x51\xf8\x78\x5c\xda\x75\x9d\xdb\x79\x76\x74\x0f\x56\x64\xd9\xfe\x5e\x6c\x57\x73\xe6\x07\xce\x5a\xa2\xfe\x68\x64\x32\x17\xa9\x31\xe2\xb2\x94\xfa\x76\x15\x03\x4e\x2b\x43\x64\xc2\x65\xbe\x6d\x7b\x75\xa2\x99\x8c\xad\x3b\x71\xcb\x60\x9c\x86\xbe\x0b\x17\xa8\xb8\xdf\x1d\x29\x42\xf8\x81\x50\xc4\xae\xdf\xc7\xb9\x9d\xd4\xf3\x76\x1d\xfc\x19\x14\x92\xb8\xbd\x38\x5a\x16\x87\xf3\x2a\x84\xd1\x5e\x8e\x8d\xb2\x0b\xe9\xed\x09\x8
func assetsMessageTxtBytes() ([]byte, error) {
return bindataRead(
_assetsMessageTxt,
"assets/message.txt",
)
}
func assetsMessageTxt() (*asset, error) {
bytes, err := assetsMessageTxtBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "assets/message.txt", size: 65831, mode: os.FileMode(436), modTime: time.Unix(1574077966, 0)}
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){
"assets/message.txt": assetsMessageTxt,
}
// 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{
"assets": &bintree{nil, map[string]*bintree{
"message.txt": &bintree{assetsMessageTxt, 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, "/")...)...)
}