Skip to content

Instantly share code, notes, and snippets.

@dirien
Last active February 20, 2022 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirien/6305a4fcb1d4b9cda005d06116fca7f9 to your computer and use it in GitHub Desktop.
Save dirien/6305a4fcb1d4b9cda005d06116fca7f9 to your computer and use it in GitHub Desktop.
Azure DevOps and GoReleaser - Part 1

The example code, is a very simple go app. It just prints some variables.

package main

import (
	"fmt"
)

var (
	version = "0.0.1"
	commit  = "none"
	date    = "none"
	builtBy = "none"
)

func main() {
	fmt.Println("Version:\t", version)
	fmt.Println("Commit:\t\t", commit)
	fmt.Println("Date:\t\t", date)
	fmt.Println("Built by:\t", builtBy)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment