yatwiki/staticResources.go

259 lines
60 KiB
Go
Raw Normal View History

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