koddr/example-embed-static-files-go

manifest

joe-getcouragenow opened this issue · 2 comments

in cmd/app, you need to remember the files in the box.

SO instead why not generate a golang Constants file during the gen ?
This go file has the name of the file (use "_" for directories, and the path of the file.

The in cmd/app, instead of having to remember the string, you have golang constants.
SO you get strong typing.

If you dont want it you dont have to use it. But its a nice to have.

SO the Manifest if a golang constants file.

Its now done.

Let me know if you want a PR

koddr commented

Hi @joe-getcouragenow

Good catch, thanks for report. If you can make PR for fix it, it's would be nice.