1
0
Fork 0
mirror of https://github.com/Luzifer/badge-gen.git synced 2024-11-09 22:00:05 +00:00
badge-gen/bindata.go

307 lines
1.5 MiB
Go
Raw Normal View History

2016-06-28 21:56:22 +00:00
// Code generated by go-bindata.
// sources:
// assets/.demoPage.tpl.html.swp
// assets/DejaVuSans.ttf
// assets/badgeTemplate.tpl
// assets/demoPage.tpl.html
// DO NOT EDIT!
2015-05-25 12:11:55 +00:00
package main
import (
"bytes"
"compress/gzip"
"fmt"
"io"
2016-06-28 21:56:22 +00:00
"io/ioutil"
"os"
"path/filepath"
2015-05-25 12:11:55 +00:00
"strings"
2016-06-28 21:56:22 +00:00
"time"
2015-05-25 12:11:55 +00:00
)
2016-06-28 21:56:22 +00:00
func bindataRead(data []byte, name string) ([]byte, error) {
2015-05-25 12:11:55 +00:00
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)
2016-06-28 21:56:22 +00:00
clErr := gz.Close()
2015-05-25 12:11:55 +00:00
if err != nil {
return nil, fmt.Errorf("Read %q: %v", name, err)
}
2016-06-28 21:56:22 +00:00
if clErr != nil {
return nil, err
}
2015-05-25 12:11:55 +00:00
return buf.Bytes(), nil
}
2016-06-28 21:56:22 +00:00
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 _assetsDemopageTplHtmlSwp = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xec\x5b\x3d\x90\x1c\x47\xf5\x1f\xdb\xff\x3f\x60\x83\x8c\xcb\x40\x00\x01\xd5\x1a\x95\x6d\x9d\x6a\xe7\x73\xbf\xf7\x76\x17\x9d\x4f\x87\x39\x90\x84\xac\x0f\xcb\x20\x04\xd5\x3b\xd3\xbb\x3b\x77\x33\xd3\xab\xe9\xde\xdb\x3b\x9f\x8f\x8f\xc4\x11\x90\x51\x10\x11\x01\x01\x29\x11\x05\x09\x8e\x1d\x10\x11\x40\x40\x15\x19\x09\x45\xb9\x8a\x00\x02\xe0\xd7\x3d\xb3\x7b\xbb\xa7\xb3\xa4\x52\x15\x36\x54\xcd\xa3\x7e\xba\xfe\x78\xfd\xde\xeb\xd7\xaf\x5f\x77\x0f\xeb\x81\xfb\xda\xf6\x15\xd2\xb4\x6b\x06\xe8\x39\xc3\x70\xde\xcd\x6e\x7f\xfd\x2f\x5f\x7b\xc2\x7c\xc7\x30\xe2\xe9\x1b\xd1\x90\x65\xc6\xc3\x68\x37\x9d\x4a\x6b\x26\x5c\xef\x21\x7c\xdf\x2c\x04\x3a\xa3\x48\x7e\x83\xcf\x52\x67\xc4\x1d\x91\x05\xaa\x3a\x9e\x0e\xec\x80\x27\xce\xe5\x82\x63\x40\xc3\x11\xb3\x46\x2c\x75\xa8\x10\x4c\x0a\x27\x64\x09\xbf\x46\x47\xcc\x96\x93\xd8\x1e\xcb\x24\x7e\xa8\x55\x25\x95\x54\xd2\x2a\x9d\x31\xaa\xbe\xe7\xaa\xd2\x39\xf3\x2c\xf9\xc4\xf3\xb7\x3e\x68\x83\x4a\x2a\xa9\xa4\x92\x4a\x2a\xa9\xa4\x92\x4a\x2a\xa9\xa4\xf7\x91\xe4\xe4\x49\xe3\x5b\xf8\xfb\x64\x51\xbf\x5a\xfc\x7d\xe2\xc4\xdf\xa7\x4e\xfc\xdd\x3e\xd1\x5f\x52\x49\x25\x95\x54\x52\x49\x25\x95\x54\x52\x49\x25\x95\x54\x52\x49\x25\xfd\xf7\x12\x0d\x0d\xe3\xa7\x78\xfc\xff\x5d\x3d\xec\x9f\x3b\x7e\xff\xff\xf5\xe3\x86\xf1\x47\xe0\x77\xc0\xaf\x80\xef\x00\x2d\xe0\xed\x67\x0d\xe3\x47\xc0\x0f\x81\x6f\x03\xcf\x02\xbf\x39\x63\x18\xaf\x02\xd7\x80\x4b\x40\x1d\x78\x1e\xf8\xdb\xc7\x0c\xe3\x0f\xc0\xdb\xc0\xcf\x80\x1f\x03\xdf\x05\x32\x60\x07\xb8\x0b\x6c\x01\x3d\xc0\x07\x3e\x05\x9c\x01\x0c\xe0\x5f\x1f\x35\x8c\x9f\x00\xb7\x80\xcf\x01\x7f\x7e\x06\x3a\x81\xb7\x80\x37\x01\x01\xdc\x06\x5e\x03\xfa\xc0\xd3\xc0\xef\x9f\x36\x8c\x77\x80\x7b\x1f\x31\x8c\x01\x70\x03\x68\x02\x0d\xe0\xb3\xc0\x3f\x3f\x6c\x18\xbf\x05\xde\x02\x42\xe0\x4f\x1f\x02\x3f\xf0\x4b\xe0\xe7\xc0\xf7\x81\xef\x01\x53\xe0\x22\x70\x16\xf8\xc5\xff\xc3\x0e\xe0\x07\xc0\x01\xb0\x0f\xbc\x0e\xdc\x06\x3e\x09\xfc\xfa\xff\x0c\x23\x00\xfe\xf1\x54\xe1\xc3\x92\x4a\xfa\x9f\x20\x02\xea\x8a\x20\x8b\x26\x92\x88\x2c\xe8\x99\x8e\x13\x84\xe9\x8e\xb0\x83\x98\x4f\xc3\x61\x4c\x33\xa6\x7f\x92\x43\x77\xe8\xbe\x13\x47\x03\xe1\xc8\x59\x24\x25\xcb\xac\x01\xe7\x52\xc8\x8c\x4e\x9c\xaa\x5d\xb5\xeb\xce\x8e\x70\x16\x4d\x76\x12\xa5\xf6\x8e\x30\xfb\x5d\x27\x97\xdd\xcf\x15\x9d\xb5\x2c\xb2\x9d\x06\xf1\x34\x64\x84\xc6\x31\x81\xe4\x49\x14\xb3\x90\x4c\xe2\xe9\x28\x4a\x05\x39\x3f\x60\x31\x9f\xad\x55\x08\xcf\x48\x54\x30\x46\x69\x18\xed\x45\xe1\x94\xc6\x64\x08\x66\x41\xa8\x20\x29\x63\x21\x86\x59\x56\xff\x31\x66\xb0\x73\x6f\xca\xb2\x03\xc7\xb7\x3d\xbb\x56\x54\x1e\x64\xf0\xce\xab\x8a\x83\x9c\x4f\x59\xc0\x84\xa0\x28\x0e\x61\xdd\xcb\xf3\xb9\xbe\x24\xc8\x17\xe9\x1e\xbd\x91\x5b\x50\x4c\x64\x4d\x9b\x96\xcb\x70\x60\x7e\x3f\x17\x65\x3b\x01\x4f\x25\x8d\x52\x96\x1d\x33\x9c\x64\xc9\xf8\x6c\x31\xb1\xe3\xde\x45\x55\x35\x4c\x96\xab\x84\x5c\xa1\x70\x13\x96\x65\x4c\xba\x11\x09\x62\x2a\x44\xcf\x1c\x52\x32\xa4\xd6\x98\xd1\x4c\x92\x8c\x85\x6a\x66\x51\x9f\xd0\x34\x24\xaf\x70\x32\x38\x20\x5d\x4a\xc6\x19\x1b\xf6\xcc\xb1\x94\x13\xd1\x71\x9c\xe2\x67\x59\x76\xc4\x1d\xb3\xff\xa5\x74\x2a\xc9\xc6\x38\x66\x99\xe8\x3a\x74\x45\xf9\x64\xa1\x01\x1e\x48\xb9\x64\xe6\x92\xa9\xb0\x74\xde\x1d\xf0\xd8\x4a\x42\xab\x45\x8a\x02\x1f\x0e\x05\x93\x96\x4f\x06\x31\x0f\x76\x17\x83\x96\x87\x60\xe6\xe6\xe3\x3b\x45\xd2\x41\xcc\x56\x1d\x73\x78\x48\x18\x66\x7c\x74\xb4\xd2\xda\x95\x59\xbf\x2b\xc7\x7d\xf4\xda\x37\x58\xb6\x17\x05\xec\x2a\x4d\x18\xd8\x20\x64\x8c\xae\xb0\xdf\x8d\x92\x51\x1e\x4d\x8a\xe9\x92\xfe\xd9\x19\xdc\x7b\x74\xa4\xfc\xa8\xfa\x15\x02\x1e\x32\x2d\xe4\x12\x0f\x3e\xcf\xb3\x84\x4a\xf2\x26\x51\xbf\x4a\xd3\x92\x74\x6f\xce\xec\x40\xe1\x49\xbb\x32\x9a\x8e\x18\xb1\xb7\xf6\x69\x32\x51\x41\xfd\x1e\x36\x16\xf6\x15\x86\x8d\xfb\x05\xff\xa2\xae\xcd\xca\x95\xe7\x6d\x27\x74\x75\xb5\x57\xe6\x0e\xce\x2b\xfa\x5f\x0b\xc1\x1b\x4d\x54\x60\x3c\x68\xf5\x3c\xff\x3f\xb0\x50\x27\xa2\xf7\xe6\x98\x91\x89\x9a\xc6\x50\x4f\x43\x90\x62\x8f\x08\xc2\x62\x96\xb0\x14\x2d\x51\x4a\x72\x6f\xbf\x18\xcb\x75\x38\x2e\x66\x2f\x8e\xe4\x7a\xe1\x63\x1d\xd4\x79\xf7\x1d\x71\x6f\x8a\xfd\x7e\x77\xde\x33\xc8\x68\xb0\xcb\xa4\xb0\xc9\x06\xb2\xc
func assetsDemopageTplHtmlSwpBytes() ([]byte, error) {
return bindataRead(
_assetsDemopageTplHtmlSwp,
"assets/.demoPage.tpl.html.swp",
2015-05-25 12:11:55 +00:00
)
}
2016-06-28 21:56:22 +00:00
func assetsDemopageTplHtmlSwp() (*asset, error) {
bytes, err := assetsDemopageTplHtmlSwpBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "assets/.demoPage.tpl.html.swp", size: 16384, mode: os.FileMode(420), modTime: time.Unix(1467150911, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _assetsDejavusansTtf = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xec\xbd\x0b\x78\x14\x45\xf6\x37\x5c\x55\x7d\x99\x9e\x6b\xe6\xd2\x49\x0f\x81\x24\x03\x81\x24\x40\x04\x44\xc4\x80\x88\x88\x11\x90\xbb\x21\x22\x22\x22\xe1\x12\x6e\x21\x60\x8c\x88\x08\x88\x2c\x22\xb2\x2c\x46\x44\x16\x11\x59\x16\x59\x40\x44\x44\x44\x60\x11\x11\x11\x59\x56\x91\x45\x50\x64\x11\x59\x16\x59\x8c\x81\x45\x84\x70\x11\x30\xf3\x9d\x3a\xd5\x93\xe9\xdc\x10\xd4\xdd\xbf\xdf\xfb\xec\xd4\x73\x7e\x75\xa6\xba\xba\xba\xaa\xce\xa9\x53\xa7\x6a\xba\x7b\x08\x25\x84\xe8\x00\x32\x69\xd7\xa1\x43\x76\xb7\xd1\xad\x16\x6e\x20\x84\x76\x85\xd4\x3a\x1d\x33\xef\xe8\x30\x27\x79\x56\x7b\xf8\x3e\x8c\x10\x36\xa7\x63\xcf\x1e\xbd\x16\x2d\x48\x39\x47\x88\x74\x99\x90\x85\x89\x1d\x7b\xdd\xdd\xfe\xcf\xef\x66\xf4\x25\x64\x71\x1d\x42\x62\x0f\x75\xbb\x2d\xbb\xd3\xb2\x40\xcb\xc9\x84\xac\x87\xe3\x6a\xdb\x1e\xbd\x9a\x36\xbf\xf7\xba\xb1\xd7\x11\xb2\xb9\x0d\x94\xd7\x7b\xd0\xa8\x9c\x31\xea\xb3\xef\x7d\x08\xdf\xe7\x10\x12\x77\x72\xd0\xd8\xc2\x10\x19\x9e\xd0\x8a\x90\xcf\xa6\xc2\x35\xca\x72\xc7\x0c\x1d\xf5\x60\x8b\xb1\x23\x08\xf9\x1c\xbe\x93\x57\x87\xe6\x3c\x34\x86\xd8\x20\x90\xfd\xcd\xe0\xbb\x6b\x68\xde\xa3\xb9\xc3\xa6\x0e\xbb\x1e\xbe\xb7\x21\xda\xa3\xfd\x86\x0d\xc9\x19\xac\xdd\xbf\xf5\x29\x62\xbf\x6b\x1e\x1c\x6f\x39\x0c\x12\xdc\x7f\x48\x7a\x17\xbe\xef\x86\xef\xf5\x87\x8d\x2a\x1c\xf7\xc1\x8d\xfb\x7f\x80\xef\xa5\x84\xe4\xe4\x8e\x1c\x52\x90\xef\x78\x47\xbd\x83\xd8\xdf\xec\x47\xc8\xad\x97\xf3\x46\x0f\xca\x19\x30\x77\xfb\x4c\x62\x3f\xd3\x07\x8e\x4f\x1f\x95\x33\x6e\x4c\x9d\x5d\xea\x83\xc4\x91\x7d\x18\xce\x0f\xe5\xe7\x8c\x1a\x92\x34\xaa\xdb\x1f\x89\xe3\x6e\xf8\x7a\x8b\x36\x66\xf4\x43\x85\x21\xdb\xb8\x59\xc4\x31\x5b\x23\xe4\xbb\xb3\x63\x0a\x86\x8c\xb9\xd9\xf6\x1d\x21\x4e\x5e\x5d\x05\xfa\x08\x7b\x93\xec\xbc\x65\xf1\xdf\x78\xfc\xc9\xc4\x1f\x4a\xcb\x63\x7e\xc4\x03\xbd\x98\xc6\x78\x5b\x18\xb9\x97\x48\x6c\x35\xa1\xec\x0d\xf6\x01\x70\xdb\xd9\x76\xe0\xff\xc2\x3e\x04\xfe\x23\xb6\x13\xf8\x8f\xd9\x27\xc0\xef\x61\x7b\x81\xff\x94\x1d\x05\xfe\x5f\xec\x1b\xe0\x4b\xd8\x19\xe0\x4b\x19\x94\xc8\xce\xb2\xb3\xc0\x9f\x63\xe7\x80\x3f\xcf\xc2\x44\x92\x88\x04\x75\x90\xa8\x24\x03\xaf\x48\x0a\xf0\xaa\xa4\x02\x6f\x93\x6c\xc0\x6b\x92\x1d\x78\x87\xe4\x00\xde\x29\xb9\x80\x77\xcb\x71\x84\xca\x86\x5c\x9b\x48\x72\x1d\xc5\x45\xa8\xe2\x56\xdc\x84\x29\x1e\x25\x06\x78\xaf\x12\x24\x92\x52\x4b\x89\x07\xbe\xb6\x92\x00\x7c\xa2\x92\x08\x7c\x92\x92\x04\x7c\x48\xa9\x0f\x7c\x03\xa5\x01\xf0\x29\x4a\x67\xe0\xbb\x28\x5d\x80\xef\xaa\x74\x07\xbe\x87\xd2\x0b\xca\xc9\x56\x0a\x80\x7f\x48\x79\x1c\xd2\x27\x2b\xcf\x00\x5f\xa4\x14\x01\xff\xac\xea\x27\x54\x0d\xa8\x70\x5d\xb5\x8e\xda\x16\xf8\x5b\xd5\x5b\x81\x6f\xa7\xde\x06\x7c\x7b\xf5\x4e\xe0\x3b\xab\x3d\x81\xbf\x4b\xed\x0d\xfc\x3d\x1a\xb4\x51\x3b\xaf\x5d\x26\x92\xf6\x83\x33\x81\x50\x67\xa2\x33\x91\x30\x67\x92\x33\x0d\xf8\x86\xce\xc6\xc0\xa7\x3b\x27\x01\xff\xb8\xf3\x71\xe0\x27\x3b\x8b\x80\x7f\xd6\xf9\x7b\x22\x39\xe7\x39\xe7\x41\xca\x0b\xce\x05\x90\xf2\x92\x73\x21\xf0\x7f\x70\xae\x03\x7e\xbd\x73\x03\xf0\x7f\x76\x7e\x02\xfc\x1e\xe7\x1e\xe0\xf7\x06\x5e\x23\x34\xb0\x2a\xb0\x91\xb0\xc0\xdb\x81\xb7\x89\x14\xd8\x14\xd8\x04\xfc\x3b\x81\x63\x90\xfe\x75\xe0\x6b\xe0\x8b\xf5\xc1\x84\xea\x43\xf4\x21\x44\xd2\x73\xf5\x5c\xe0\x87\xea\x43\x81\x1f\xa6\x8f\x20\x4c\x1f\xa9\x8f\x84\x94\x3c\x7d\x2c\xf0\x8f\xe8\xc7\x81\x3f\xa1\x9f\x01\xbe\xd4\x88\x25\xd4\x88\x33\x42\x44\x32\xea\x1a\x85\xc0\x3f\x6c\x4c\x00\x7e\xa2\xb1\x0f\xf8\xcf\x8d\xcf\x81\xdf\x1f\x1c\x00\x5a\x22\xa3\x76\x70\xf2\x82\x6e\x44\xb4\x82\x81\x3e\x7c\x0e\xb8\x9f\xed\x07\x89\xff\x9d\xfd\x9d\xc8\xec\x00\x68\x05\x03\x7d\xf8\x37\xe0\x49\xd0\x04\x8a\x9a\xc0\x40\x13\xce\x03\x7f\x81\x5d\x04\xfe\x12\xfb\x01\xf8\x32\xd0\x0d\x06\x5a\xc1\x40\xee\xf0\x01\x5e\x06\x0d\xa1\xa8\x93\x0e\x7a\x90\xf5\x23\x7a\x66\x87\xae\xd9\x64\x7c\x4e\x41\xce\x40\x32\x2d\xa7\x60\x54\x3e\x59\x3e\xb0\x20\x67\x38\x59\x3b\x28\x27\xff\x21\xb2\x65\xd0\xb0\x21\x05\x64\xe7\xa0\x47\x0b\xf2\xc8\xfe\xa1\x43\x46\x17\x90\xd2\xa1\x05\x43\x46\x52\x32\x2c\x27\x7f\x38\xf5\x0e\x1b\x32\xb0\x80\xd6\x19\x99\x93\x9f\x43\x1b\xe5\xe5\x8c\x0e\xd1\x96\x79\x39\x85\xf9\xb4\xc3\xa8\x9c\xc2\x61\x74\x5a\xfe\x48\x48\x99\x3d\x7a
func assetsDejavusansTtfBytes() ([]byte, error) {
return bindataRead(
_assetsDejavusansTtf,
2015-05-25 12:11:55 +00:00
"assets/DejaVuSans.ttf",
)
}
2016-06-28 21:56:22 +00:00
func assetsDejavusansTtf() (*asset, error) {
bytes, err := assetsDejavusansTtfBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "assets/DejaVuSans.ttf", size: 756072, mode: os.FileMode(420), modTime: time.Unix(1432551573, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _assetsBadgetemplateTpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x54\x5f\x6f\xda\x30\x10\x7f\xef\xa7\x38\x5d\x35\x69\x95\x80\x38\x30\x5e\xa6\x18\x69\xda\xa4\xee\x65\x4f\x9b\xba\x67\x87\xd8\x89\x37\xe3\x20\xdb\x25\x69\xab\x7e\xf7\xd9\x4e\x5a\x82\x42\xd7\x60\x1e\x38\x9b\xbb\xdf\x9f\xbb\x13\x99\x3d\x94\xd0\xee\x94\xb6\x14\x2b\xe7\xf6\x9f\x93\xa4\x69\x9a\x45\xb3\x5a\xd4\xa6\x4c\x96\x84\x90\xc4\x67\x20\x34\xb2\x70\x15\xc5\xa7\x27\x58\xfc\x0e\x21\x3c\x3f\x23\x54\x5c\x96\x95\xa3\xb8\x24\xb8\xb9\x02\x80\x4c\x49\xcd\x99\xb9\x35\xac\x90\x5c\x3b\x90\x05\xc5\x1c\xa1\x5d\x52\x24\x08\x0f\xfe\x2b\x25\xe4\x43\x97\x1b\xd2\xad\xab\xf7\x50\x0b\x61\xb9\x8b\x19\xe1\x3e\xdf\xd6\xaa\x36\x14\xaf\xf3\x3c\xef\x5f\xea\x3d\xdb\x4a\xf7\x40\x71\x91\x22\x24\xe7\xab\xfd\x2f\xe3\xf3\x56\x75\x96\x9c\x0a\xed\x1e\x77\xcc\xfe\x8d\x92\xd9\x51\xa1\xe1\x5b\xf7\xae\x77\x30\x2d\xc5\x15\x82\x90\x4a\x79\xe1\x42\x88\x23\x51\x00\xed\xc2\x12\x42\x4c\xf1\xde\xa8\x8f\xd7\xec\xe6\xc8\xb1\x67\x1e\xb2\xaf\x5d\xaf\xd7\xa7\x46\xbc\x9c\x1f\x64\x64\x8c\x40\x15\xd4\xfc\x92\x4e\xf1\x17\x49\x00\x87\x25\x81\xef\xe3\xe4\xc7\x61\xd3\x86\x64\x01\xe2\x6b\xe8\x76\x34\xd4\x93\x8d\x71\x3d\xe8\xd0\x7a\x8f\x1a\xc9\xc6\xc9\x6f\x91\x45\xd7\xf9\x0d\x4e\x74\x76\x8e\xec\x3f\xce\xb2\xa4\x7c\x69\xf2\x70\x08\x8e\xb7\x6e\xce\xf4\xb6\x0a\x0b\xb5\x93\x45\xa1\xb8\x9f\x52\xad\xdd\x5c\xb0\x9d\x54\x7e\x27\xbe\xf1\x3f\xec\xee\x1e\x7e\x32\x6d\x67\x77\xdc\x14\x4c\xb3\xd9\x2d\xd7\xfc\xc0\x66\xd6\xbf\xcd\x2d\x37\x52\xf4\x35\x56\x3e\x72\xbf\x68\xe9\x71\x72\x01\x1f\xda\x6e\x33\x62\x1b\xbe\x44\xae\xd8\x4e\x0f\x9e\xae\x5f\x77\x82\xa4\xe1\xd3\x5d\x07\x1b\xb9\xc2\xcd\x6b\xad\xaf\xca\x92\x80\x38\x19\xfe\xd3\xb9\x9d\x3f\x3d\x93\xe1\x7d\x3c\x40\xbf\x4c\x7d\xc0\xb9\x18\x7d\xb2\xf8\x11\x7a\x1c\x76\x16\xfe\x96\x36\x57\xff\x02\x00\x00\xff\xff\xde\xc7\x45\x2c\xbf\x04\x00\x00")
func assetsBadgetemplateTplBytes() ([]byte, error) {
return bindataRead(
_assetsBadgetemplateTpl,
"assets/badgeTemplate.tpl",
)
}
func assetsBadgetemplateTpl() (*asset, error) {
bytes, err := assetsBadgetemplateTplBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "assets/badgeTemplate.tpl", size: 1215, mode: os.FileMode(420), modTime: time.Unix(1432562639, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _assetsDemopageTplHtml = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x58\x6d\x93\xdb\xb6\x11\xfe\x9e\x5f\xb1\xa1\x27\x89\xcf\xc3\x77\x91\x12\xa5\xa3\x34\xb9\x28\x6e\xea\xd6\x76\x53\xc7\x99\xbe\x78\xfc\x01\x22\x21\x09\x67\x92\x90\x09\xe8\x5e\x72\xd5\x7f\xef\x03\x50\xd2\x51\x97\x73\x93\xba\xd3\xc9\xc8\x59\x60\x17\xbb\x8b\xdd\x67\x77\xc1\xcb\xbf\xfc\xfe\x2f\xf3\xb7\xff\xf8\xf1\x39\xad\x75\x5d\xcd\xbe\xc8\xcd\xff\xa8\x62\xcd\x6a\xea\xf0\xc6\x99\x7d\x41\x94\xaf\x39\x2b\x0d\x01\xb2\xe6\x9a\x51\xb1\x66\xad\xe2\x7a\xea\x6c\xf5\xd2\xcb\x9c\x3e\x6b\xad\xf5\xc6\xe3\x1f\xb7\xe2\x6a\xea\xfc\xdd\xfb\xf9\xc2\x9b\xcb\x7a\xc3\xb4\x58\x54\xdc\xa1\x42\x36\x9a\x37\x38\xf7\xe2\xf9\x94\x97\x2b\x7e\x72\xb2\x61\x35\x9f\x3a\x57\x82\x5f\x6f\x64\xab\x7b\xc2\xd7\xa2\xd4\xeb\x69\xc9\xaf\x44\xc1\x3d\xbb\x70\x49\x34\x42\x0b\x56\x79\xaa\x60\x15\x9f\x46\x07\x45\x5f\x7a\x1e\xbd\x5d\x73\x62\x0b\x79\xc5\x69\x40\x56\xb1\x66\x2b\x45\xcf\xea\xad\xd2\xcf\xa0\xb4\xe6\xb4\x14\xad\xd2\x50\x41\x1a\xa2\xe6\x6e\xe7\xc4\x9a\x5b\x92\x58\xb6\x76\x7d\xb0\x4d\xe6\x50\x77\xe6\x19\x5b\x6a\xde\x3e\x33\x47\x14\xef\x54\x7a\xde\xde\xaa\x16\xba\xe2\xb3\xef\xa4\xd4\x4a\xb7\x6c\x43\x51\x18\xd1\x5b\x5e\x6f\x2a\xa6\x79\x1e\x74\xdc\x2f\xee\x1d\xbc\x17\x3c\x6a\xa8\x44\xf3\x81\xd6\x2d\x5f\x4e\x9d\x20\x28\xca\xe6\x52\xf9\x45\x25\xb7\xe5\xb2\x62\x2d\xf7\xe1\x40\xc0\x2e\xd9\x4d\x50\x89\x85\x0a\xf4\xb5\xd0\x70\xc5\x5b\x1c\xd4\x04\x03\x7f\xe0\xa7\x41\xa1\x54\x70\xdc\xf3\x6b\xd1\xf8\xd8\x71\xa8\xe5\xd5\xd4\x51\xfa\xb6\xe2\x6a\xcd\xb9\x76\x1e\xb3\x68\x8f\x5d\x33\x5d\xac\xad\x2d\x58\xd5\xd5\xed\xe7\x2a\xfb\x0d\xf7\x97\x08\xad\xc7\xae\xb9\x42\x54\x83\xc4\x1f\xfa\x03\xeb\x79\x7f\xfb\x3f\xd9\xeb\x0c\xda\xad\xce\x38\x91\xbf\xa8\x64\xf1\x81\xee\xf6\x4b\xa2\x05\x2b\x3e\xac\x5a\xb9\x6d\x4a\xaf\x90\x95\x6c\x27\xf4\x64\x39\x36\xff\x9d\x1f\x45\x6a\xd6\xae\x44\x83\x18\x6a\x2d\xeb\x09\x0d\xc2\xcd\xcd\xaf\x98\x5a\x6e\x1e\x72\x36\xac\x2c\x45\xb3\xea\xb6\x29\xbc\x67\x68\x7e\x03\xf7\x2b\xb1\x6a\x26\x54\x00\x39\xbc\x3d\xf0\x76\x07\x2f\x97\x08\x67\x23\x35\xef\x39\x6a\x2f\xad\xc4\x2f\x7c\x42\xa1\x3f\xe6\xf5\xaf\xce\xb4\xbc\xec\x89\x1f\x2e\x53\x8c\xe2\x34\xe1\x0f\x85\xd7\x51\x4f\xf4\xc1\xfd\xe2\xde\x2d\x3a\xf9\x3c\xd8\xc7\xf0\x1e\x97\x7f\x7c\xfb\xea\x65\x4a\x6a\x2d\x6a\x94\x43\x49\x6f\xb8\xda\xc8\xa6\xf4\x2f\x15\xfc\x6c\xe9\xc5\xf3\x8c\xd4\x76\x63\x6a\x93\xe4\x72\x2f\xcc\x2b\x5e\xe3\xb6\xca\x1e\xa8\x79\x29\x18\x7d\xdc\xf2\x56\xf0\x5e\x75\x18\xd5\x7f\xbb\x78\xf3\xfa\xc5\xeb\x1f\x26\x7d\xa5\xa5\xe4\xaa\xf9\x46\xd3\xb5\x6c\x3f\x90\x58\xd2\xad\xdc\x92\xa9\x7e\x5b\x95\x1b\xb6\xe2\x58\x31\xd4\x6a\xc5\x27\x41\x70\xa2\xee\x1d\xa4\x2b\x0d\x8f\x68\xfc\xfe\x00\x82\x5c\x15\xad\xd8\x68\x52\x6d\x31\x75\x4c\x13\x52\x38\x25\x95\xf2\x6b\x76\x03\x44\x5a\x10\x9a\xce\x96\xe2\x7e\x57\xa8\x98\x91\x1f\xdf\xaf\x2d\xe0\x2e\x95\x33\x43\x54\xac\x9a\xff\x46\x6b\xdb\x5d\x29\x88\xfc\x04\x3a\xf7\xab\x4f\x68\xcc\xbf\x7c\xc7\x9b\x52\x2c\xdf\x77\xd7\xc9\x83\x43\x67\xcd\x17\xb2\xbc\xdd\xcb\x94\xe2\x8a\x8a\x8a\x29\x35\x75\x4c\x1f\x62\xa2\xe1\xed\x01\xf9\xa7\xec\x56\x5e\x3b\xb3\x63\xce\x4f\x0f\x56\x5e\x5d\x7a\x19\xed\x09\xb9\x5c\xa2\x61\x7b\x31\xd9\x5a\xe9\x1d\x32\xdd\x3d\x9a\xe5\x85\x2c\xf9\x6c\xc1\xd0\x93\xbd\x15\x6f\xf2\xc0\xae\xe9\x7b\x5e\x4b\xf8\x18\x9d\x88\x6f\xfa\x2b\xb2\xed\x16\x0d\x7e\x6d\x40\x52\x33\x40\x61\xef\xb3\xba\x07\x07\x3a\x6d\x67\xe0\xeb\x4a\x9f\x63\xb0\x54\xfc\xeb\x95\x3e\x3f\x18\x31\xd0\xe9\xd8\xef\xd4\xc7\x2d\x1a\xc6\xfb\x03\x67\xd1\xa2\x90\xb9\x56\x3e\x5d\x54\xd5\x89\x3a\xab\xe4\xc8\x27\x1c\x02\xe2\x9b\x92\x35\x5a\xb6\xb7\x74\xbd\x06\x68\x00\x23\x89\x4e\x0d\xe1\x4e\xeb\xa9\xb4\xdc\x68\x21\x1b\x56\xf9\x34\x37\x45\xa5\xa8\xe1\x28\x35\x2d\x69\xc1\x49\x6d\x78\x21\x96\x02\x6b\xa6\x30\x43\x80\xfd\xa1\x9d\x78\xac\xd0\x76\x3e\xdc\x90\x71\x4f\xd1\x53\x53\x16\xfc\x86\xa1\xd1\xf3\xfd\x0d\x92\x22\x3a\x38\x0f\x5e\xb7\xc7\xc3\xb4\x4c\x92\xfd\xf6\x99\x8f\xc9\x70\xa3\xad\x39\xb5\xb7\xf7\xf3\x9b\x97\xc4\x1b\xc3\x2e\xfd\x7e\xa0\x83\x5e\xa4\xf3\x00\xc9\x3d\xa2\xd2\x2e\xba\xca\xf2\x03\x80\xc0\x56\xc7\xe7\xe0\x23\x8a\x4f\xa1\xa0\x19\xe6\xf4\x41\xa6\x5b\xd8\x7f\x3d\xcc\x01\xb1\xe1\xa5\x73\x9a\xfb\x5c\xb7\xb3\x5c\xaf\x67\x3f\xf1\xd6\x
func assetsDemopageTplHtmlBytes() ([]byte, error) {
return bindataRead(
_assetsDemopageTplHtml,
"assets/demoPage.tpl.html",
)
}
func assetsDemopageTplHtml() (*asset, error) {
bytes, err := assetsDemopageTplHtmlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "assets/demoPage.tpl.html", size: 4589, mode: os.FileMode(420), modTime: time.Unix(1467150920, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
2015-05-25 12:11:55 +00:00
// 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 {
2016-06-28 21:56:22 +00:00
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
2015-05-25 12:11:55 +00:00
}
return nil, fmt.Errorf("Asset %s not found", name)
}
2016-06-28 21:56:22 +00:00
// 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)
}
2015-05-25 12:11:55 +00:00
// 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.
2016-06-28 21:56:22 +00:00
var _bindata = map[string]func() (*asset, error){
"assets/.demoPage.tpl.html.swp": assetsDemopageTplHtmlSwp,
"assets/DejaVuSans.ttf": assetsDejavusansTtf,
"assets/badgeTemplate.tpl": assetsBadgetemplateTpl,
"assets/demoPage.tpl.html": assetsDemopageTplHtml,
2015-05-25 12:11:55 +00:00
}
2016-06-28 21:56:22 +00:00
2015-05-25 12:11:55 +00: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))
2016-06-28 21:56:22 +00:00
for childName := range node.Children {
rv = append(rv, childName)
2015-05-25 12:11:55 +00:00
}
return rv, nil
}
2016-06-28 21:56:22 +00:00
type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
2015-05-25 12:11:55 +00:00
}
2016-06-28 21:56:22 +00:00
var _bintree = &bintree{nil, map[string]*bintree{
"assets": &bintree{nil, map[string]*bintree{
".demoPage.tpl.html.swp": &bintree{assetsDemopageTplHtmlSwp, map[string]*bintree{}},
"DejaVuSans.ttf": &bintree{assetsDejavusansTtf, map[string]*bintree{}},
"badgeTemplate.tpl": &bintree{assetsBadgetemplateTpl, map[string]*bintree{}},
"demoPage.tpl.html": &bintree{assetsDemopageTplHtml, map[string]*bintree{}},
2015-05-25 12:11:55 +00:00
}},
}}
2016-06-28 21:56:22 +00: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, "/")...)...)
}