36-versions/

directory
v0.0.0-...-cba17b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: Apache-2.0

README

Versions, build constraints, and ldflags

During my Go Tooling in Action Workshop many people ask how to include version information to binaries, so I decided to make an episode out of it!

We will solve the problem using three different techniques:

  • constants and build constraints (code)
  • variables and build constraints (code)
  • variables and ldflags (code)

In each directory you can build the development and production releases by running make dev or make prod.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL