You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

294 lines
1.7 MiB

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