5 ms·
Unless your application also contains other assets like images etc. Now you suddenly need to package and install/deploy your Go application.
by Spiritus 8y ago
Unless your application also contains other assets like images etc. Now you suddenly need to package and install/deploy your Go application.
- deadbunny 8y agoOr you just bundle them all in to the binary like a monster.
- akhilcacharya 8y agoIs there an accepted way to do this?
- deleted 8y ago[deleted]
- deadbunny 8y agoI know Consul was using https://github.com/jteeuwen/go-bindata https://github.com/jteeuwen/go-bindata [1] a few years ago. Personally I'm not a fan but I can totally see the appeal. 1. https://github.com/hashicorp/consul/pull/1543 https://github.com/hashicorp/consul/pull/1543
- majewsky 8y agogo-bindata is the conventional method, but I'm not entirely sure which fork is the most maintained one right now.
- ValentineC 8y agoI wanted to statically compile a single HTML template file recently, and I liked using vfsgen [1] and vfstemplate [2]. I also found this comparison of libraries pretty good: https://tech.townsourced.com/post/embedding-static-files-in-go/ https://tech.townsourced.com/post/embedding-static-files-in-... [1] https://github.com/shurcooL/vfsgen https://github.com/shurcooL/vfsgen [2] https://github.com/shurcooL/httpfs/blob/master/html/vfstemplate/vfstemplate.go https://github.com/shurcooL/httpfs/blob/master/html/vfstempl...
- jacobush 8y agoHello Win32 rc files all over again.
- sli 8y agoI do miss editing those with Resource Hacker or XN Resource Editor. I translated tons of Japanese and Chinese software into English that way back in high school and early college. Good times.
- takeda 8y agoAnd TBH properly packaging Go program is a nightmare if you want packager to build it and the build machine has no access to net.