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