Go programming language provides many unique good features to write and maintain examples for your packages backed by the testing tools.
As an addition to the test coverage and test coverage report, go test also can provide coverage for testable examples.
Use the following comman...
The Go language comes with a powerful built-in template engine. In Go, we have the template package to help handle templates. We can use functions like Parse, ParseFile and Execute to load templates from plain text or files, then evaluate the dynamic parts. Also it’s possib...
With Go 1.7, testing package supports sub-tests that allows you to run multiple smaller tests from a test case. Each sub test is reported independently in the go test output. More information about these recent additions can be found at Marcel van Lohuizen’s recent talk fro...
Every now and then an active java-based project enters in a “dependency hell” state. That usually happens because people keep adding dependencies without checking what comes in transitively nor if that dependency is declared somewhere else already.
It also seems to ha...
Apple has a suite of instrumentation and tracing tools for performance analysis available as a part of their Xcode tooling set. In this article, we will use Instruments to record and analyze the CPU profile of a Go program.
Instruments also provide a large set of macOS-specific t...
I’ve just released SCS, a session management package for Go 1.7+.
Its design leverages Go’s new context package to automatically load and save session data via middleware.
Importantly, it also provides the security features that you need when using server-side...
Disclaimer: This article is not about a core Go package or tool but gRPC.
gRPC provides support for implementing streaming endpoints as well as streaming support in their clients. Bidirectional streaming is useful if you want both server and client to be able to communicate to th...
Regular Expressions are slow, ugly, error-prone, incomprehensible,… Or are they? Find out by learning regexp basics.
This blog aims to fill the gaps in knowledge transmission and provide useful everyday tips about the Go programming language, its packages and tools.
I started this blog when she was working on the Go team at Google and an trying my best to keep it alive.
About the author I work...