UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
MIT License
634 stars 53 forks source link

unescaped paths on windows #29

Closed iu0v1 closed 6 years ago

iu0v1 commented 6 years ago

When trying to build a big project came across a second problem:

.\a_fileb0x.go:66:14: unknown escape sequence
.\a_fileb0x.go:69:12: unknown escape sequence
.\a_fileb0x.go:72:17: unknown escape sequence
.\a_fileb0x.go:75:12: unknown escape sequence
.\a_fileb0x.go:78:12: unknown escape sequence
.\a_fileb0x.go:81:12: unknown escape sequence
.\a_fileb0x.go:84:12: unknown escape sequence
.\a_fileb0x.go:87:17: unknown escape sequence
.\a_fileb0x.go:90:17: unknown escape sequence
.\a_fileb0x.go:93:12: unknown escape sequence
.\a_fileb0x.go:93:12: too many errors

There was something similar to (we could receive unescaped \n,\t, etc in string):

var remap = map[string]map[string]string{
  "fileb0x.test.yaml": {
        "prefix": "external/",
        "base": "",
    },"static\test.html": {
        "prefix": "test_prefix/",
        "base": "",
    },"static\test.txt": {
        "prefix": "test_prefix/",
        "base": "",
    },"main.go": {
        "prefix": "external/",
        "base": "",
    },
}

PS: PR on the way