github.com/orteth01/up@v0.2.0/internal/shim/bindata.go (about) 1 // Code generated by go-bindata. 2 // sources: 3 // bindata.go 4 // byline.js 5 // index.js 6 // shim.go 7 // DO NOT EDIT! 8 9 package shim 10 11 import ( 12 "bytes" 13 "compress/gzip" 14 "fmt" 15 "io" 16 "io/ioutil" 17 "os" 18 "path/filepath" 19 "strings" 20 "time" 21 ) 22 23 func bindataRead(data []byte, name string) ([]byte, error) { 24 gz, err := gzip.NewReader(bytes.NewBuffer(data)) 25 if err != nil { 26 return nil, fmt.Errorf("Read %q: %v", name, err) 27 } 28 29 var buf bytes.Buffer 30 _, err = io.Copy(&buf, gz) 31 clErr := gz.Close() 32 33 if err != nil { 34 return nil, fmt.Errorf("Read %q: %v", name, err) 35 } 36 if clErr != nil { 37 return nil, err 38 } 39 40 return buf.Bytes(), nil 41 } 42 43 type asset struct { 44 bytes []byte 45 info os.FileInfo 46 } 47 48 type bindataFileInfo struct { 49 name string 50 size int64 51 mode os.FileMode 52 modTime time.Time 53 } 54 55 func (fi bindataFileInfo) Name() string { 56 return fi.name 57 } 58 func (fi bindataFileInfo) Size() int64 { 59 return fi.size 60 } 61 func (fi bindataFileInfo) Mode() os.FileMode { 62 return fi.mode 63 } 64 func (fi bindataFileInfo) ModTime() time.Time { 65 return fi.modTime 66 } 67 func (fi bindataFileInfo) IsDir() bool { 68 return false 69 } 70 func (fi bindataFileInfo) Sys() interface{} { 71 return nil 72 } 73 74 var _bindataGo = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") 75 76 func bindataGoBytes() ([]byte, error) { 77 return bindataRead( 78 _bindataGo, 79 "bindata.go", 80 ) 81 } 82 83 func bindataGo() (*asset, error) { 84 bytes, err := bindataGoBytes() 85 if err != nil { 86 return nil, err 87 } 88 89 info := bindataFileInfo{name: "bindata.go", size: 0, mode: os.FileMode(420), modTime: time.Unix(1503694113, 0)} 90 a := &asset{bytes: bytes, info: info} 91 return a, nil 92 } 93 94 var _bylineJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x58\xff\x4f\xe3\x46\x16\xff\x3d\x7f\xc5\x2b\x27\x35\x89\xce\x18\xb6\xd2\x49\xd5\x22\x4e\x32\xc1\x2c\xbe\x0b\x09\x72\x4c\xb9\xd5\xb2\xaa\x1c\x7b\x8c\xa7\x38\x1e\xdf\xcc\x78\xd3\xa8\xcb\xff\x7e\xef\xcd\xd8\xb1\x0d\x81\x6b\xab\x2d\xd8\x33\xef\x7d\xde\xf7\x2f\xe6\xe4\x04\x66\xa2\xda\x49\xfe\x98\x6b\x98\xcc\xa6\xf0\xd3\xe9\x87\x0f\xc7\xf8\xe3\x1f\xf0\x2f\x91\x97\x70\xcd\xb6\x4a\x94\xa3\x93\x13\xfc\x07\xb7\x4c\x6e\xb8\x52\x5c\x94\xc0\x15\xe4\x4c\xb2\xf5\x0e\x1e\x65\x5c\x6a\x96\x3a\x90\x49\xc6\x40\x64\x90\xe4\xb1\x7c\x64\x0e\x68\x01\x71\xb9\x83\x8a\x49\x44\x00\xb1\xd6\x31\x2f\x79\xf9\x08\x31\x24\x28\x91\xf0\x90\x58\xe7\x88\xa4\x44\xa6\xb7\xb1\x64\x48\x9f\x42\xac\x94\x48\x78\x8c\x90\x90\x8a\xa4\xde\xb0\x52\xc7\x9a\x44\x66\xbc\x60\x0a\x26\x3a\x67\x70\xb4\x6a\x38\x8e\xa6\x24\x87\xb0\x52\x16\x17\xc0\x4b\xa0\xeb\xf6\x16\xb6\x5c\xe7\xa2\xd6\x20\x99\xd2\x92\x27\x04\xe3\x20\x51\x52\xd4\x29\x69\xd2\x5e\x17\x7c\xc3\x1b\x21\xc8\x4e\x68\xc6\x1f\x8a\x4c\xa8\x15\x9a\x42\x0a\x3b\xb0\x11\x29\xcf\xe8\x37\x33\xf6\x55\xf5\xba\xe0\x2a\x77\x20\xe5\x84\xbe\xae\x35\x1e\x2a\x3a\x4c\x58\x49\x5c\x68\xcd\x89\x90\x04\xa7\x58\x51\x10\x08\x47\x03\x8c\xd1\x9d\x8e\x86\x8c\x04\x55\xe4\x5c\xdd\xb8\xcb\x88\xde\xe6\x62\x33\xb4\x87\x2b\x42\xcb\x6a\x59\xa2\x60\x66\xd8\x52\x81\xee\x33\x72\x7f\x63\x89\xa6\x13\xe2\xc8\x44\x51\x88\x2d\xd9\x98\x88\x32\xe5\x64\x9a\xfa\xd8\x44\x31\xc2\xfb\x78\x2d\xbe\x31\x63\x96\x8d\x7c\x29\x34\x6a\x6d\x55\xa1\x88\x54\x5d\xa4\x9b\x2b\x95\xc7\x68\xc3\x9a\x35\xee\x43\xe1\x9c\xd2\x02\xe2\x9e\x65\x92\xd4\x50\x1a\xf3\x81\x63\x30\x2a\x21\x8d\xdc\x97\x16\xbb\xad\x1e\xd7\x3e\xac\x96\x57\xd1\xbd\x17\xfa\x10\xac\xe0\x36\x5c\xfe\x12\x5c\xfa\x97\x70\xe4\xad\xf0\xfd\xc8\x81\xfb\x20\xba\x5e\xde\x45\x80\x14\xa1\xb7\x88\x3e\xc3\xf2\x0a\xbc\xc5\x67\xf8\x77\xb0\xb8\x74\xc0\xff\xcf\x6d\xe8\xaf\x56\xb0\x0c\x09\x2d\xb8\xb9\x9d\x07\x3e\x1e\x07\x8b\xd9\xfc\xee\x32\x58\x7c\x82\x0b\x64\x5d\x2c\x23\x98\x07\x37\x41\x84\xb8\xd1\xd2\xc8\x6c\xd0\x02\x7f\x45\x78\x37\x7e\x38\xbb\xc6\x57\xef\x22\x98\x07\xd1\x67\x87\xb0\xae\x82\x68\x41\xc8\x57\xcb\x10\x3c\xb8\xf5\xc2\x28\x98\xdd\xcd\xbd\x10\x6e\xef\xc2\xdb\xe5\xca\x47\x25\x2e\x11\x79\x11\x2c\xae\x42\x14\xe4\xdf\xf8\x8b\xc8\x45\xc1\x78\x06\xfe\x2f\xf8\x02\xab\x6b\x6f\x3e\x27\x69\x04\xe7\xdd\xa1\x19\x21\x29\x0a\xb3\xe5\xed\xe7\x30\xf8\x74\x1d\xc1\xf5\x72\x7e\xe9\xe3\xe1\x85\x8f\xfa\x79\x17\x73\xdf\x4a\x43\xeb\x66\x73\x2f\xb8\x71\xe0\xd2\xbb\xf1\x3e\xf9\x86\x6b\x89\x40\xc6\x48\xa2\xb4\x6a\xc2\xfd\xb5\x4f\xa7\x24\xd5\xc3\x7f\xb3\x28\x58\x2e\xc8\x9e\xd9\x72\x11\x85\xf8\xea\xa0\xb9\x61\xb4\xe7\xbe\x0f\x56\xbe\x03\x5e\x18\xac\x50\x61\x63\x63\xb8\x44\x21\xe4\x5d\x64\x5a\x1a\x1c\x64\x5d\xf8\x16\x88\x3c\x3f\x0c\x10\x92\xd0\xfb\xdd\xca\xdf\x63\xc2\xa5\xef\xcd\x11\x6e\x65\xfc\xbf\x18\xd0\xbb\xa3\xd1\xb7\x18\xf3\x41\x4b\x16\x6f\xe0\x1c\x2b\xf0\xbf\x35\x97\x6c\x32\xb6\x27\xe3\xa9\x33\x02\xfc\xaf\xd6\xbc\xe8\xdf\xd2\xfb\x78\x7a\x36\x22\x44\xcc\xdc\x6f\xd8\x31\x58\x89\xd9\xe7\xdd\x06\x23\x2c\xbf\xba\x60\x2e\xfb\x9d\x12\x4b\x21\x57\x56\x97\xa6\xa4\x27\x88\x98\xae\x0c\xae\x03\xa2\x32\x49\x37\x85\x3f\x50\x80\x64\x1a\x6b\x05\x86\x9c\x6e\x82\x94\x9a\x59\x86\x83\xbc\x67\xa3\x67\xab\xc2\x3a\x56\x3c\x39\x20\x7c\x00\xf1\xa7\x34\xe1\x19\xf4\x2e\xed\xd9\x5e\x3f\x8b\x36\xe7\xe5\xfb\x4a\x01\x3c\x03\x2b\x14\x1b\x32\x97\x6c\x0b\x3d\xd6\x01\x79\x6b\x47\xca\x2a\xc9\x12\xd3\x53\xdf\x34\xa6\xc3\x38\x6c\x90\xd5\x19\x83\xa2\x04\xf2\x16\xe2\x71\x32\xc6\x40\x63\x0d\x7c\xfa\x08\xeb\x5d\x81\xdc\x7f\x7b\x05\x84\x9d\xa4\x27\x9a\xba\xcb\x96\xdb\x2e\x22\xd9\x06\x3b\x50\x8a\xbd\x4b\x94\x63\xa3\xec\xff\xf7\x45\x13\x97\x56\xb7\x3f\xe7\xb6\xbd\xf7\x7f\x78\xed\x7e\x9d\x4b\xb1\x35\x0e\xf4\xa5\x14\x72\x32\x46\x8f\x60\x13\x45\xb5\x3a\xda\x71\xe3\xc9\x57\x20\x2e\x3d\xc6\xeb\x82\xbd\x89\xd6\xd1\xc2\xa6\x56\xda\x9a\x6d\x79\x3a\x54\xaa\x92\x82\xb2\xf9\x9d\x38\xf6\x84\x56\xbc\x62\x93\x42\xf5\x3d\x56\x28\xf4\xcb\xa8\x69\xaa\xb5\xa2\xa6\x4f\xed\x96\xf0\x4a\x91\x32\xf8\x76\xea\x7e\x38\x85\x23\x5b\x78\xea\xa7\x23\x93\x02\x48\xfd\x32\x0d\x06\x09\xd0\xbd\xf4\x3d\x7e\x40\x3f\x63\xbc\xc5\x76\x23\x5c\x05\x54\x26\xe4\xc6\x4d\x70\x2c\x4c\x68\x92\x0c\xf3\xb7\x79\x46\xfc\xf6\xe9\xfb\x77\xf8\x83\x82\x0a\x60\x94\xc7\x05\xc2\xcc\xb1\x1b\x52\x1c\x67\x99\xd2\xa2\x32\xd6\xe0\x98\xae\x70\x52\x67\x12\x47\xe2\x9a\x91\x8d\xeb\x3a\xcb\x70\x03\x49\x2d\xeb\x36\xe7\x49\x8e\x1e\x39\xc6\x04\xc5\x6c\x8b\x4b\xcc\x0c\x65\x38\x29\x33\x51\x8d\xdf\x28\x02\xed\xc0\x47\xdf\x98\x63\x77\x04\x66\xde\xb9\xbf\xb6\x81\x59\xe1\x1e\xc0\xdc\x9e\x12\xe7\xa0\x65\xcd\xce\xf6\x84\xc4\x77\x61\x44\xe3\xd5\x97\xaf\xdd\xc5\x13\x63\x95\xbf\xa9\xf4\x8e\x9c\xd4\x33\xd1\x7d\x71\x81\x16\x67\x31\x56\x71\x0f\x32\x56\x7a\x96\xd7\xe5\x93\x5f\xe2\x5c\xbd\x47\x1d\x67\x21\xd5\xa0\xa5\xb2\xf6\xe9\xf8\x89\x19\x73\x94\xa8\x65\xc2\xc6\x0a\xb0\x2f\x0a\xb3\xc5\x60\x5e\x6e\x19\xee\x01\xe5\x58\x43\x1e\xe3\x58\x17\x25\x6b\xb1\xb1\x82\xc7\x94\x32\x63\xa7\x2b\x69\x25\x93\x36\x65\x4d\x4a\x1b\xc2\x16\xad\xbd\x31\x42\x71\xa5\x21\xe8\x24\x26\xe8\x54\xd8\xd5\x00\xe3\x0b\xa2\x48\x8f\x95\xde\x15\xac\x89\xbc\x6a\x78\x08\x0f\xe1\x71\x35\xa0\x2d\x20\x61\x38\xf9\x9b\xd4\x08\x5f\x14\x8b\x2d\x98\x9e\x60\x34\x18\x39\x5f\x06\xa2\xbd\x3d\x6b\x98\x9e\x47\xed\xcf\x67\xea\x06\x23\x9a\x17\x2e\x2f\x71\x15\xe5\x5a\x4d\xba\xf4\x74\x5e\xa5\x24\x0d\x95\xee\xde\xad\xa4\xd0\x42\xef\x2a\xe6\xfe\xaa\x5b\x92\x7e\xdf\x4b\x28\x1e\xce\xde\xc9\x0e\xf9\xb7\x51\xde\xf4\xd3\x84\x72\x63\xcd\xcb\x58\xee\xc0\xd0\x2a\x5c\x5c\xe1\x2e\xba\x3a\xfe\x19\x49\x7a\x46\xed\x1f\x31\xee\x38\xde\xb2\x9f\xc7\x26\xa4\xe4\x29\x9b\x46\x2e\x57\xf6\xc1\xca\x9c\xf6\x63\xd3\xe1\x9c\xc3\xd8\x26\xfc\xb8\xf3\xa0\xa1\x47\x11\xe6\xb7\xab\x05\x9a\x86\xb4\x93\xe9\x99\xa9\x25\x14\xd5\xd0\xf5\xb4\x69\x35\xe8\x7c\xd9\x1b\x28\x6f\x01\xee\x73\xa3\xe3\x7b\xde\x27\x6f\x62\x13\xf7\x95\xbd\xc6\x4a\xd3\xdc\x9a\x72\xb0\xa0\xaa\x2a\xb8\x9e\x9c\x3c\xc8\x87\xf2\xfb\x83\xfc\xfe\x50\x9e\x10\x6c\xe3\x55\x93\xc2\x86\x02\x66\xe1\xfc\xaa\x29\x6a\x55\x61\x7c\x1a\x27\x37\x9e\x7b\xa7\x6e\x7e\xfc\xd1\x92\x7e\x39\xfd\x6a\xbc\xf6\x50\xee\x3d\x66\x4b\x5e\xe5\x3c\xd3\x93\xa6\xff\x0e\xf1\xf6\xa5\xed\x16\xac\x7c\xd4\x39\xfc\x13\x4e\xbb\xee\x3e\x24\xf9\xf2\x16\xcf\x31\x7c\xf8\x0a\x7f\x3f\xb7\xd2\x50\x8b\xb3\x77\x64\xbf\x5b\xff\xd6\x0c\xeb\xb6\x3e\xb6\xb1\x4a\x8e\xdf\x68\x49\xaf\xd4\xb2\x0d\x71\x62\x14\x98\x76\x4c\x55\xad\xf2\x26\xef\xba\x24\xff\xd0\xe4\xb9\x1d\xb4\x87\xcb\xa5\x63\xec\xd7\x4b\x87\x41\xed\xee\x45\xb9\xc4\xc5\x36\xde\xa9\xa6\x63\xdb\xa6\x8c\x26\xc3\xa4\x12\xf8\x89\xb1\x2e\xf0\x1b\x31\x96\xf4\xc9\x30\x35\x6e\x42\x1e\x0c\x3c\xf6\x96\x77\xc2\x42\x42\xda\xc8\xb4\x49\x76\xc8\xf8\x9e\xc3\x8d\x26\xea\x89\x57\xc0\xa8\x19\xdb\x88\xec\x2b\xed\x60\x0f\xc7\x92\x25\xaa\x5e\x36\x40\x57\x7d\x5d\xef\x24\x8f\x4c\xda\x31\x62\x1c\xc1\x8c\xbb\xbb\xf6\x31\x9d\xf6\xfb\x9e\x19\x57\xcc\x7e\xaa\xe6\xf8\xf9\x75\xbc\xc5\x56\x27\x61\x13\xcb\x27\xda\x98\xd0\xe1\x49\x4e\x1f\xd4\x29\x23\x77\x11\x3a\xea\x52\x97\xb4\x2a\xdb\xc1\xfe\x3b\x7e\xe7\xf1\xe4\x69\x0f\x68\x36\x6d\x56\x64\x8d\x07\xce\xf6\x17\x8a\xe9\x60\xb3\x61\x29\x7d\x4e\x4f\xf6\xb1\xea\xeb\x02\x86\xf1\x8d\x74\xe8\x85\xb2\xc3\x7c\xee\x3d\xdb\x0d\xe4\x40\x73\xc6\xff\x89\x6d\xf2\x6e\x26\x65\x05\x0a\xed\x27\x51\x97\x34\xaf\x72\xf4\x40\xb3\x71\xe0\x74\x90\xae\xe6\x3b\x9b\x41\x3b\x69\x3e\x7e\x24\xf6\x37\x44\xb7\x71\xea\x4b\xb7\x21\x1b\x88\xe8\xb6\xc7\xe1\xac\xc2\x26\x33\x3c\xf8\xe1\xfc\x10\xe3\x60\x47\x6f\x0c\x39\x24\xa5\x6b\xb5\xc3\x59\xdc\xee\x88\xa6\x47\xbf\xd2\xa2\x95\x41\xdb\x81\xf9\x2b\x0a\xae\x36\x45\x4a\x5b\x26\x65\xc9\x46\x60\x85\x25\x62\xb3\xa1\x45\x39\xa6\x3f\x47\x70\x97\xb9\x38\xce\x71\x2d\x6d\xb6\xc4\xb8\xb4\x09\x6a\xd6\x70\xda\x2a\x9a\xa1\xd9\xd7\x9c\xd4\x1d\xa8\xf1\x57\xec\xda\x7f\x83\xfc\x2f\x00\x00\xff\xff\xbb\x06\x82\x6d\x66\x12\x00\x00") 95 96 func bylineJsBytes() ([]byte, error) { 97 return bindataRead( 98 _bylineJs, 99 "byline.js", 100 ) 101 } 102 103 func bylineJs() (*asset, error) { 104 bytes, err := bylineJsBytes() 105 if err != nil { 106 return nil, err 107 } 108 109 info := bindataFileInfo{name: "byline.js", size: 4710, mode: os.FileMode(420), modTime: time.Unix(1502065748, 0)} 110 a := &asset{bytes: bytes, info: info} 111 return a, nil 112 } 113 114 var _indexJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x7c\x92\x41\x8f\xda\x3e\x10\xc5\xef\xf9\x14\xa3\x95\x50\x12\xfe\xfc\x8d\x7a\xa5\xe2\xd2\x96\x76\xb7\x6a\x77\x0f\xab\xaa\x87\xed\x6a\xd7\x49\x06\xb0\xea\xd8\xa9\x6d\x20\x08\xf1\xdd\x3b\xe3\x24\x34\x1c\xda\x0b\xc8\xcf\xbf\x99\xf7\x66\x9c\x64\x2f\x1d\x94\x5b\xa5\x2b\x58\x82\xc3\x5f\x3b\xe5\x30\x4b\xa3\xf0\xd2\x38\x5b\xa2\xf7\x69\x1e\xa1\xe2\xa8\x95\xc1\x31\x25\xe6\x9d\x46\x40\x32\x9f\x4e\x13\x98\xc2\x7b\xa9\x75\x21\xcb\x9f\xb0\xb6\x0e\xc2\x16\x23\x8c\x3e\x08\xba\x9c\x27\x9d\x59\x8f\xfc\xa9\x89\xee\xbd\x59\x2c\x2c\x94\x91\xee\x08\x77\xf3\x87\x51\x1d\x03\xe4\x1e\xa3\x09\xdf\xc8\x83\xe1\x04\xb5\x54\x26\x9d\xc1\x09\x7c\xa8\x94\x5d\xc0\x53\xda\xa8\x06\x49\x19\xfe\xfb\xbe\x82\xee\xd1\xb9\x67\x38\x53\x58\xd6\x84\xa5\x7a\x52\xac\x23\x68\xbd\x33\x65\x50\xa4\x90\x90\x9f\x12\x80\xd2\x1a\x6f\x35\x8a\x08\x64\xe9\x93\xdf\xaa\xfa\x19\xe2\x69\x01\x13\x4f\x25\x4c\x12\x38\xb4\xc7\x56\x85\xec\x4d\x9e\x5c\xb7\x27\x71\xdc\xbd\xb4\x15\xce\xc0\xab\x8d\x91\xfa\x5f\x36\x54\xb6\x00\x86\x97\x13\xdf\xe3\xcb\x68\x7a\xd5\xe0\x2f\xee\xfd\x56\xef\xf1\xc0\x6f\xf3\x7f\x85\x5a\xd5\x2a\x60\x05\x9f\x1f\x1f\xee\x79\x4d\x76\x37\x7e\x0e\x3a\xd1\x56\xbb\x87\xcc\x62\xf2\x0e\xa1\x4e\x0c\xf2\x18\x95\x0c\x72\x3c\x06\xa3\x31\xbe\x5a\x43\x76\x89\x60\xf6\xe2\xc3\xea\xdd\xb7\x4f\x2f\x8f\xb7\x77\x5f\xf3\xcb\x68\xda\x6e\x2e\x83\x35\xd2\x79\x65\x36\x0b\x78\x9d\xf8\x57\xea\x18\x1b\x51\x1f\xce\x51\xfb\x0d\xe5\xe0\x8c\x82\x31\xcc\x86\xcb\xe1\x7b\xc9\x88\xe8\x16\x35\x63\x58\xec\xa5\xde\xe1\xd5\xc8\xb7\xd2\x54\x1a\x01\xf7\x68\x82\xef\x47\xc4\xb6\xb1\x8e\x4e\xdb\xee\x6e\x39\x7a\x6a\xc6\x68\xa5\xa1\xa5\x9f\x22\x87\xd3\xc8\x8b\xbf\xb3\x82\xcf\xa1\x15\x83\xf6\x5d\xaa\xe0\x3f\x5a\xb7\xaa\x9b\x70\x5c\x71\xf1\x17\x6b\x1b\xee\x28\xb5\xc7\xa4\x7f\x0d\xde\x9e\x32\xe2\xe0\x68\xe5\x59\x9c\xc6\x07\x47\x33\xab\xf5\x31\x63\x07\x80\x9b\x68\x7c\xb3\xe8\x72\xce\x3a\x8d\xb6\x15\xb0\x65\x95\x2c\x49\x3a\xe7\xff\xa5\x3f\x4c\x9a\xbf\x4d\xce\xc9\xef\x00\x00\x00\xff\xff\x5e\x9c\x33\x71\xa3\x03\x00\x00") 115 116 func indexJsBytes() ([]byte, error) { 117 return bindataRead( 118 _indexJs, 119 "index.js", 120 ) 121 } 122 123 func indexJs() (*asset, error) { 124 bytes, err := indexJsBytes() 125 if err != nil { 126 return nil, err 127 } 128 129 info := bindataFileInfo{name: "index.js", size: 931, mode: os.FileMode(420), modTime: time.Unix(1502065748, 0)} 130 a := &asset{bytes: bytes, info: info} 131 return a, nil 132 } 133 134 var _shimGo = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x4c\x8c\xc1\x0d\xc2\x30\x10\x04\xff\xae\x62\x1b\x48\xfc\xa7\x06\x1e\xb4\xb0\xc6\xe6\x38\x85\xdc\x59\x67\x07\x89\xee\x41\xca\x87\xe7\x8c\x34\x93\xb3\xf8\x45\x9a\xb5\xe0\x6c\x10\x5f\x8a\x5a\xe5\x24\x96\xbe\x09\xc6\x53\x77\xac\x29\xe5\x8c\x1b\xef\x1b\xa5\x9d\xaa\x87\xbf\xb5\xb6\x01\x9e\xfc\xf0\x40\x1c\x66\x6a\x02\x46\xd1\x19\x8c\x0f\x5e\x34\x39\x7e\xcd\x80\x1b\xae\xdc\x4b\xe5\x9a\xfa\xdf\x27\x7d\x03\x00\x00\xff\xff\xb4\x05\x8d\x5f\x7e\x00\x00\x00") 135 136 func shimGoBytes() ([]byte, error) { 137 return bindataRead( 138 _shimGo, 139 "shim.go", 140 ) 141 } 142 143 func shimGo() (*asset, error) { 144 bytes, err := shimGoBytes() 145 if err != nil { 146 return nil, err 147 } 148 149 info := bindataFileInfo{name: "shim.go", size: 126, mode: os.FileMode(420), modTime: time.Unix(1502065748, 0)} 150 a := &asset{bytes: bytes, info: info} 151 return a, nil 152 } 153 154 // Asset loads and returns the asset for the given name. 155 // It returns an error if the asset could not be found or 156 // could not be loaded. 157 func Asset(name string) ([]byte, error) { 158 cannonicalName := strings.Replace(name, "\\", "/", -1) 159 if f, ok := _bindata[cannonicalName]; ok { 160 a, err := f() 161 if err != nil { 162 return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) 163 } 164 return a.bytes, nil 165 } 166 return nil, fmt.Errorf("Asset %s not found", name) 167 } 168 169 // MustAsset is like Asset but panics when Asset would return an error. 170 // It simplifies safe initialization of global variables. 171 func MustAsset(name string) []byte { 172 a, err := Asset(name) 173 if err != nil { 174 panic("asset: Asset(" + name + "): " + err.Error()) 175 } 176 177 return a 178 } 179 180 // AssetInfo loads and returns the asset info for the given name. 181 // It returns an error if the asset could not be found or 182 // could not be loaded. 183 func AssetInfo(name string) (os.FileInfo, error) { 184 cannonicalName := strings.Replace(name, "\\", "/", -1) 185 if f, ok := _bindata[cannonicalName]; ok { 186 a, err := f() 187 if err != nil { 188 return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) 189 } 190 return a.info, nil 191 } 192 return nil, fmt.Errorf("AssetInfo %s not found", name) 193 } 194 195 // AssetNames returns the names of the assets. 196 func AssetNames() []string { 197 names := make([]string, 0, len(_bindata)) 198 for name := range _bindata { 199 names = append(names, name) 200 } 201 return names 202 } 203 204 // _bindata is a table, holding each asset generator, mapped to its name. 205 var _bindata = map[string]func() (*asset, error){ 206 "bindata.go": bindataGo, 207 "byline.js": bylineJs, 208 "index.js": indexJs, 209 "shim.go": shimGo, 210 } 211 212 // AssetDir returns the file names below a certain 213 // directory embedded in the file by go-bindata. 214 // For example if you run go-bindata on data/... and data contains the 215 // following hierarchy: 216 // data/ 217 // foo.txt 218 // img/ 219 // a.png 220 // b.png 221 // then AssetDir("data") would return []string{"foo.txt", "img"} 222 // AssetDir("data/img") would return []string{"a.png", "b.png"} 223 // AssetDir("foo.txt") and AssetDir("notexist") would return an error 224 // AssetDir("") will return []string{"data"}. 225 func AssetDir(name string) ([]string, error) { 226 node := _bintree 227 if len(name) != 0 { 228 cannonicalName := strings.Replace(name, "\\", "/", -1) 229 pathList := strings.Split(cannonicalName, "/") 230 for _, p := range pathList { 231 node = node.Children[p] 232 if node == nil { 233 return nil, fmt.Errorf("Asset %s not found", name) 234 } 235 } 236 } 237 if node.Func != nil { 238 return nil, fmt.Errorf("Asset %s not found", name) 239 } 240 rv := make([]string, 0, len(node.Children)) 241 for childName := range node.Children { 242 rv = append(rv, childName) 243 } 244 return rv, nil 245 } 246 247 type bintree struct { 248 Func func() (*asset, error) 249 Children map[string]*bintree 250 } 251 var _bintree = &bintree{nil, map[string]*bintree{ 252 "bindata.go": &bintree{bindataGo, map[string]*bintree{}}, 253 "byline.js": &bintree{bylineJs, map[string]*bintree{}}, 254 "index.js": &bintree{indexJs, map[string]*bintree{}}, 255 "shim.go": &bintree{shimGo, map[string]*bintree{}}, 256 }} 257 258 // RestoreAsset restores an asset under the given directory 259 func RestoreAsset(dir, name string) error { 260 data, err := Asset(name) 261 if err != nil { 262 return err 263 } 264 info, err := AssetInfo(name) 265 if err != nil { 266 return err 267 } 268 err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) 269 if err != nil { 270 return err 271 } 272 err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) 273 if err != nil { 274 return err 275 } 276 err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) 277 if err != nil { 278 return err 279 } 280 return nil 281 } 282 283 // RestoreAssets restores an asset under the given directory recursively 284 func RestoreAssets(dir, name string) error { 285 children, err := AssetDir(name) 286 // File 287 if err != nil { 288 return RestoreAsset(dir, name) 289 } 290 // Dir 291 for _, child := range children { 292 err = RestoreAssets(dir, filepath.Join(name, child)) 293 if err != nil { 294 return err 295 } 296 } 297 return nil 298 } 299 300 func _filePath(dir, name string) string { 301 cannonicalName := strings.Replace(name, "\\", "/", -1) 302 return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) 303 } 304