Articles

Only showing: howto Show all

CLI commands with google/subcommands

How to create CLI programs with multiple commands, flags and subcommands, and do it fast and simply?

google/subcommands makes it a breeze.

Let us see how.

How to plot Go test coverage over time

The Go SDK has been including test coverage reports since Go 1.2.

How can we obtain a time graph of test coverage, without needing a SaaS service?

Bundling templates with embed

Resource embedding tools like embed allow developers to include static assets and other unpublished files like templates in their executable programs.

Let’s see how.

Fullscreen text UIs

Want to create a Go application combining a web user interface and a full-screen text user interface (TUI) ?

This is actually rather easy, thanks to a well-built contributed module.

Bundling templates with pkger

Resource embedding tools like pkger allow developers to include static assets and other unpublished files like templates in their executable programs.

Let’s see how.