Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Fri, 04 Feb 2022 19:38:00 +0000 Plotting go test coverage over time #testing #howto #observability <p>The Go SDK has been including test coverage reports since <a href="https://go.dev/blog/cover" style="box-sizing: inherit; color: rgb(0, 162, 156);">Go 1.2</a>.</p> <p>How can we obtain a time graph of test coverage, without needing a SaaS service? Enter https://gitlab.com/fgmarand/gocoverstats ...</p> 4 points posted by FGM https://osinet.fr/go/en/articles/plotting-go-test-coverage 4681 Sun, 16 Jan 2022 20:24: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