jsonresume/themes/tex/tex-assets.go

240 lines
9.5 KiB
Go
Raw Normal View History

2018-05-10 23:46:04 +02:00
// 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\xdf\x6f\xe4\x34\x10\x7e\x66\xff\x0a\x3f\x44\xd5\x1d\xea\x46\xbb\xed\x55\x42\x48\x20\x95\xa3\x88\x8a\x02\x15\x77\x80\x4e\x75\x1f\x5c\x67\x36\xf1\xad\xe3\x04\xdb\xd9\xeb\x62\xe6\x7f\x47\xfe\x91\x4d\xb2\xbb\xad\x28\xf0\x52\xd5\x9e\x99\x6f\x66\xbe\xf9\xc6\x59\x5a\x34\xbc\xab\x41\x59\x2e\x99\x31\x77\xec\x4d\xcb\x5a\xd0\xa7\xcb\x45\x6b\xef\x1d\xd3\x56\x70\x09\x38\xa3\x9d\x81\x96\xf1\x35\x2b\xc1\xb5\x4c\x9b\xb5\x68\x27\x97\x77\xbc\xbe\x77\xab\x4e\xca\x96\x95\x7b\xee\x56\x58\x09\x06\xf8\xf4\x96\x69\xcd\xb6\x53\x88\x4a\x14\x20\x85\x5a\x9b\x7b\x57\x6d\x5b\xd0\x1a\x56\x38\xa3\x21\x7c\xd5\xe8\x9a\x59\x47\x0d\x70\x2b\x1a\x85\x8e\xde\x30\x5d\x02\x35\xdc\x54\xac\x05\xaa\x59\x59\x42\xa1\x45\x59\x59\x74\xe8\x16\x50\xa3\xc3\xbb\x18\xab\x3b\x09\xf7\x09\xc7\xb4\x8c\x0b\x55\x8e\x80\x16\xad\x45\x77\xde\xff\x99\x51\x56\x14\xb6\x91\xa0\x4a\x5b\x39\x6a\xe1\xd1\x56\x10\x51\xcf\x79\x8d\x33\xea\xdb\x33\x76\x2b\xc1\x41\xdd\x5a\xdf\xc0\x03\x94\x42\xb9\x9e\xc4\xe0\xa2\x1d\xe5\xa0\x2c\x68\xa1\x4a\x92\x4a\x25\xce\xe5\xdf\x30\x23\x78\xfe\x13\xab\x81\xcc\x11\x09\x7a\xd7\x63\x01\x72\x1a\x70\xc3\x1e\x40\x3e\x13\x31\x73\x4e\xac\x48\xef\xdc\x70\xe6\x3b\xcb\x2f\x8b\x42\x83\x31\x88\x03\xce\x81\x89\x52\xe7\x40\x15\x88\xc7\x21\x6e\x1b\x63\x99\x7c\xdb\x14\x70\x0c\x65\x6c\x25\x09\xe7\xd0\xeb\xad\xb0\x5b\x9f\x68\x76\xc4\xd4\x74\xca\xea\x6d\x44\x08\x1e\x43\x0d\xb7\x55\xa3\xc6\x59\xd3\xf9\x78\xc1\x57\x35\x13\x72\xe4\x9c\xce\x83\x33\xad\x34\xac\x1c\x71\x6e\xde\x87\xfc\xfa\xcb\x4d\x64\xf4\xf8\xed\x2c\x12\x1d\x93\xbc\x5b\x0b\x29\x8d\x37\xcc\x7a\xdd\xa4\xa8\x1b\xa6\xca\x91\xd9\xc7\x69\x50\xf0\x89\x37\x75\xcd\x54\xe1\x68\x50\xb9\xb1\x1a\x2c\xaf\xd0\x2d\xf2\x8b\x9d\x60\x2c\x7b\xe8\x24\xd3\xe8\xbe\x1e\x4d\x12\x5b\x77\x96\x5f\xf0\x1a\xff\x6a\xdd\xf2\x4d\xfe\x05\xaf\x43\xa7\x9a\xa9\x12\x26\x75\x7c\x16\xd2\x7b\x25\x21\x9e\x84\x2a\x4b\x4b\x5e\x49\x50\xf1\xf2\x35\x59\x2e\x10\xe9\xc6\xcb\x1d\x3e\x77\x34\x55\xe0\x96\x9e\x24\x50\xc5\x80\x11\xa1\x33\x71\x4a\xb2\x35\xf9\xf2\x2b\x92\xff\x00\xdb\x4f\x8d\x2e\x82\x6e\xc4\x8a\xc0\x1f\x24\x13\x64\xe1\x4f\xd9\x3a\x44\x4b\x03\x88\xa7\x64\x77\x8e\x63\x9f\x80\xbe\xa0\x9c\x5e\x38\x94\xce\x68\xdd\x49\x2b\x78\x23\xbb\x5a\xb9\x33\x74\x1c\x1d\x92\x20\x8b\x1e\x9c\x82\x2a\x76\xc4\x3d\x4f\xf5\xd2\xf3\x36\x27\x63\xad\xf8\x61\x75\x7e\x7d\x23\xd6\xcb\xc7\x10\xc7\xbd\x83\x41\x3c\x39\xe0\x50\x06\x0e\xa7\x99\x46\x94\x44\x2a\x4f\xc9\x1e\x5f\xbb\x00\x44\xf2\xca\xb9\xfc\x3b\xd9\x81\xe2\x5b\xc4\xd7\xd1\x9e\x9c\x9f\xe1\x68\xca\xcc\xd0\x79\x6a\xfd\xf7\x46\xaf\x9f\xd4\xaf\x37\x5e\x3d\xb6\xa0\x05\x28\x0e\xbd\x8e\xff\xb5\x4a\x77\xb9\x9c\x8b\xaf\xf6\xb7\xcc\xc2\x8f\x1f\x48\x7e\xa5\x0a\xff\x2f\xe2\x49\x78\x57\x1f\xfa\x85\x1c\xde\xc3\x53\x32\xb5\xdc\x36\x46\xf8\x6a\xd3\xa6\xc6\x29\xa6\xd7\x23\xd2\x58\x17\x67\x16\x1e\xc7\xb7\x83\x9e\xf6\xf3\xbf\xb3\x4c\x87\x43\xaa\x6e\x34\xb6\x2a\x8c\xed\x7b\x51\x56\xd2\x3f\xf6\x71\x6e\xbb\x32\xe7\x73\x2f\xd3\xac\xca\xdf\xfb\x4f\x48\xc2\x4e\xd1\x55\x7e\x6d\xa1\xee\x03\xaa\xa0\x70\xbf\xe7\xbc\xc6\x3e\x9c\x4a\xff\x7e\x0b\x0b\xb5\xd8\x78\xa0\x3c\x21\xf4\x12\x18\xe9\xfb\x85\x1b\x70\x30\xe7\xab\xa2\x8b\x3c\x3c\x39\xec\x89\xc7\x7f\x99\x73\xe0\x0d\x02\x6f\xd3\xac\xfd\x6b\x14\xb5\x4e\xeb\xee\x48\x47\xe3\xe6\x87\x21\x7d\x20\x19\x0c\x53\x42\x24\x73\x72\x60\x1e\x44\xe4\x5c\xf0\xee\x8a\xed\xfb\x6d\x1b\x3f\x41\x59\xec\xf1\x5a\xc5\x13\xe4\x97\x1a\xd8\xd8\x72\x69\xc3\x29\xa9\x26\x83\xfc\x5a\x19\x2b\x6c\x17\xa5\xf3\x12\xa6\x7f\x6b\x64\xa7\x2c\x80\x7e\x92\xe9\x89\xc7\x3f\x61\xfa\x3c\x31\x7d\x71\xc8\xf3\x26\xf0\x3c\xcd\x79\xc0\xf3\x31\xe9\x8c\x89\x16\x2b\x92\x6d\xfa\x4f\xdc\xf8\x93\x38\xdc\xf6\x9f\xc3\x6c\x93\xff\xac\x4b\xa6\xc4\x9f\x23\xad\x78\xc6\x37\xbb\x9d\x4c\x74\xcd\x89\xff\x20\xa4\x0c\x7b\x61\xf8\x64\x48\x7a\x95\x53\x87\x1f\xfb\x0d\xcc\x36\xfb\x3b\xb8\x6b\xf2\xa3\x6f\xf2\x64\xd2\xd1\xde\x7e\xf6\x4f\xc1\xe1\x92\xfe\x4f\x2b\x8a\x3b\x19\x3c\x2b\x90\x70\x3f\xfc\x1c\xfc\x3b\x00\x00\xff\xff\x52\xbc\x3d\x68\x5f\x0b\x00\x00")
2018-05-10 23:46:04 +02:00
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: 2911, mode: os.FileMode(420), modTime: time.Unix(1525990888, 0)}
2018-05-10 23:46:04 +02: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){
"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, "/")...)...)
}