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