Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Fri, 14 Jan 2022 21:41:00 +0000 Bundling templates with embed #embed #howto #assets If you've been embedding assets  or templates with rakyll/statik, markbates/pkger or any other bundler, you will probably want to convert to the new embed package brought by Go 1.16 to replace them all. This article, following one about pkger, explains how, going through the exact same steps to make converting easier. 4 points posted by FGM https://osinet.fr/go/en/articles/bundling-templates-with-embed 4673 Mon, 03 Jan 2022 12:47:00 +0000 Bundling templates with pkger #assets, #pkger <p>Resource embedding tools like <code style="box-sizing: inherit; background-color: rgb(250, 250, 250); font-family: Hugo, Menlo, monospace;">pkger</code> allow developers to include static assets and other unpublished files like templates in their executable programs. Let’s see how.</p> 4 points posted by FGM https://osinet.fr/go/en/articles/bundling-templates-with-pkger 4465 Tue, 06 Oct 2020 07:53:00 +0000