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