douyu9159 2018-04-30 13:58
浏览 80
已采纳

如何在.go文件代码中转换代码? [关闭]

I want to change a code. I have the html code. I have the .go code. I want to edit the html and the same should be edited on the .go file, that means I want to edit the .go file.

files are at https://github.com/jpillora/cloud-torrent/tree/master/static/files .go file for this folder is here at https://github.com/jpillora/cloud-torrent/blob/master/static/files.go

the file i was to edit is https://github.com/jpillora/cloud-torrent/blob/master/static/files/index.html

.go code for this is given as

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

func filesIndexHtmlBytes() ([]byte, error) {
    return bindataRead(
        _filesIndexHtml,
        "files/index.html",
    )
}

func filesIndexHtml() (*asset, error) {
    bytes, err := filesIndexHtmlBytes()
    if err != nil {
        return nil, err
    }

info := bindataFileInfo{name: "files/index.html", size: 4311, mode: os.FileMode(420), modTime: time.Unix(1524843465, 0)}
    a := &asset{bytes: bytes, info: info}
    return a, nil
}
  • 写回答

1条回答 默认 最新

  • dongshao8471 2018-04-30 14:44
    关注

    files.go is generated by go-bindata, a tool for embedding assets in Go binaries. It is not meant to be edited manually, as stated clearly by the comment at the top of the file

    // Code generated by go-bindata.
    // sources:
    // files/cloud-favicon.png
    // [...]
    // DO NOT EDIT!
    

    The repository contains a go generate command in static/static.go, so to compile the assets, simply run

    go generate github.com/jpillora/cloud-torrent/static
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问不小心下载到了钓鱼软件怎么办?
  • ¥15 求国博抢票 求国博抢票 有的私
  • ¥50 swiftui @query 报错
  • ¥50 怎么解决刷卡或扫码后,点击软件输入框,win10屏幕键盘不会自动弹出的问题
  • ¥15 如何使用arcgispro的训练深度模型,发现water和nowater精度为0?(相关搜索:深度学习)
  • ¥20 matlab作业不太懂呀有问题能给个代码吗
  • ¥15 自制电路图为何无法驱动ESP01S?
  • ¥15 前端加access数据库
  • ¥15 ARCGIS 多值提取到点 ERROR 999999
  • ¥15 mysql异常断电, [MY-011971] [InnoDB]