maddyblue / esc

A simple file embedder for Go
http://godoc.org/github.com/mjibson/esc
MIT License
637 stars 73 forks source link

local file not being served #1

Closed amitu closed 9 years ago

amitu commented 9 years ago
$ esc -o static.go static/

Generates:

var data = map[string]*file{
    "/static/mart.js": {compressed: "....", size: 519, local: "static/static/mart.js"},
}

Which is wrong as I do not have static/static/mart.js, and hence it fails.

maddyblue commented 9 years ago

Please post the result of $ find static from the same directory in which you ran esc.

maddyblue commented 9 years ago

Never mind, I repro'd this. Working on it.

amitu commented 9 years ago

Thanks.