printbuildinfo

A small example Go program that prints some of the information returned by debug.ReadBuildInfo. The goal of the example is to show how a program can know its own version tag when it is go installed.

Usage

go install github.com/linux2647/printbuildinfo@latest
printbuildinfo