Basic details page connected signals
[resumebuilder.git] / bindata.go
1 // Code generated by go-bindata.
2 // sources:
3 // resources/resumebuilder.glade
4 // DO NOT EDIT!
5
6 package main
7
8 import (
9 "bytes"
10 "compress/gzip"
11 "fmt"
12 "io"
13 "io/ioutil"
14 "os"
15 "path/filepath"
16 "strings"
17 "time"
18 )
19
20 func bindataRead(data []byte, name string) ([]byte, error) {
21 gz, err := gzip.NewReader(bytes.NewBuffer(data))
22 if err != nil {
23 return nil, fmt.Errorf("Read %q: %v", name, err)
24 }
25
26 var buf bytes.Buffer
27 _, err = io.Copy(&buf, gz)
28 clErr := gz.Close()
29
30 if err != nil {
31 return nil, fmt.Errorf("Read %q: %v", name, err)
32 }
33 if clErr != nil {
34 return nil, err
35 }
36
37 return buf.Bytes(), nil
38 }
39
40 type asset struct {
41 bytes []byte
42 info os.FileInfo
43 }
44
45 type bindataFileInfo struct {
46 name string
47 size int64
48 mode os.FileMode
49 modTime time.Time
50 }
51
52 func (fi bindataFileInfo) Name() string {
53 return fi.name
54 }
55 func (fi bindataFileInfo) Size() int64 {
56 return fi.size
57 }
58 func (fi bindataFileInfo) Mode() os.FileMode {
59 return fi.mode
60 }
61 func (fi bindataFileInfo) ModTime() time.Time {
62 return fi.modTime
63 }
64 func (fi bindataFileInfo) IsDir() bool {
65 return false
66 }
67 func (fi bindataFileInfo) Sys() interface{} {
68 return nil
69 }
70
71 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")
72
73 func resourcesResumebuilderGladeBytes() ([]byte, error) {
74 return bindataRead(
75 _resourcesResumebuilderGlade,
76 "resources/resumebuilder.glade",
77 )
78 }
79
80 func resourcesResumebuilderGlade() (*asset, error) {
81 bytes, err := resourcesResumebuilderGladeBytes()
82 if err != nil {
83 return nil, err
84 }
85
86 info := bindataFileInfo{name: "resources/resumebuilder.glade", size: 8801, mode: os.FileMode(436), modTime: time.Unix(1540395646, 0)}
87 a := &asset{bytes: bytes, info: info}
88 return a, nil
89 }
90
91 // Asset loads and returns the asset for the given name.
92 // It returns an error if the asset could not be found or
93 // could not be loaded.
94 func Asset(name string) ([]byte, error) {
95 cannonicalName := strings.Replace(name, "\\", "/", -1)
96 if f, ok := _bindata[cannonicalName]; ok {
97 a, err := f()
98 if err != nil {
99 return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
100 }
101 return a.bytes, nil
102 }
103 return nil, fmt.Errorf("Asset %s not found", name)
104 }
105
106 // MustAsset is like Asset but panics when Asset would return an error.
107 // It simplifies safe initialization of global variables.
108 func MustAsset(name string) []byte {
109 a, err := Asset(name)
110 if err != nil {
111 panic("asset: Asset(" + name + "): " + err.Error())
112 }
113
114 return a
115 }
116
117 // AssetInfo loads and returns the asset info for the given name.
118 // It returns an error if the asset could not be found or
119 // could not be loaded.
120 func AssetInfo(name string) (os.FileInfo, error) {
121 cannonicalName := strings.Replace(name, "\\", "/", -1)
122 if f, ok := _bindata[cannonicalName]; ok {
123 a, err := f()
124 if err != nil {
125 return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
126 }
127 return a.info, nil
128 }
129 return nil, fmt.Errorf("AssetInfo %s not found", name)
130 }
131
132 // AssetNames returns the names of the assets.
133 func AssetNames() []string {
134 names := make([]string, 0, len(_bindata))
135 for name := range _bindata {
136 names = append(names, name)
137 }
138 return names
139 }
140
141 // _bindata is a table, holding each asset generator, mapped to its name.
142 var _bindata = map[string]func() (*asset, error){
143 "resources/resumebuilder.glade": resourcesResumebuilderGlade,
144 }
145
146 // AssetDir returns the file names below a certain
147 // directory embedded in the file by go-bindata.
148 // For example if you run go-bindata on data/... and data contains the
149 // following hierarchy:
150 // data/
151 // foo.txt
152 // img/
153 // a.png
154 // b.png
155 // then AssetDir("data") would return []string{"foo.txt", "img"}
156 // AssetDir("data/img") would return []string{"a.png", "b.png"}
157 // AssetDir("foo.txt") and AssetDir("notexist") would return an error
158 // AssetDir("") will return []string{"data"}.
159 func AssetDir(name string) ([]string, error) {
160 node := _bintree
161 if len(name) != 0 {
162 cannonicalName := strings.Replace(name, "\\", "/", -1)
163 pathList := strings.Split(cannonicalName, "/")
164 for _, p := range pathList {
165 node = node.Children[p]
166 if node == nil {
167 return nil, fmt.Errorf("Asset %s not found", name)
168 }
169 }
170 }
171 if node.Func != nil {
172 return nil, fmt.Errorf("Asset %s not found", name)
173 }
174 rv := make([]string, 0, len(node.Children))
175 for childName := range node.Children {
176 rv = append(rv, childName)
177 }
178 return rv, nil
179 }
180
181 type bintree struct {
182 Func func() (*asset, error)
183 Children map[string]*bintree
184 }
185 var _bintree = &bintree{nil, map[string]*bintree{
186 "resources": &bintree{nil, map[string]*bintree{
187 "resumebuilder.glade": &bintree{resourcesResumebuilderGlade, map[string]*bintree{}},
188 }},
189 }}
190
191 // RestoreAsset restores an asset under the given directory
192 func RestoreAsset(dir, name string) error {
193 data, err := Asset(name)
194 if err != nil {
195 return err
196 }
197 info, err := AssetInfo(name)
198 if err != nil {
199 return err
200 }
201 err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
202 if err != nil {
203 return err
204 }
205 err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
206 if err != nil {
207 return err
208 }
209 err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
210 if err != nil {
211 return err
212 }
213 return nil
214 }
215
216 // RestoreAssets restores an asset under the given directory recursively
217 func RestoreAssets(dir, name string) error {
218 children, err := AssetDir(name)
219 // File
220 if err != nil {
221 return RestoreAsset(dir, name)
222 }
223 // Dir
224 for _, child := range children {
225 err = RestoreAssets(dir, filepath.Join(name, child))
226 if err != nil {
227 return err
228 }
229 }
230 return nil
231 }
232
233 func _filePath(dir, name string) string {
234 cannonicalName := strings.Replace(name, "\\", "/", -1)
235 return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
236 }
237