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