Skip to content

Commit

Permalink
gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Mar 1, 2023
1 parent d8fddc7 commit 7475205
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions monitoring/exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ func parseMetricList(list string) []string {
}

// Build version number defined by the compiler:
// -ldflags "-X main.buildstamp=value_to_assign_to_buildstamp"
//
// -ldflags "-X main.buildstamp=value_to_assign_to_buildstamp"
//
// Reported to clients in response to {hi} message.
// For instance, to define the buildstamp as a timestamp of when the server was built add a
// flag to compiler command line:
// -ldflags "-X main.buildstamp=`date -u '+%Y%m%dT%H:%M:%SZ'`"
//
// -ldflags "-X main.buildstamp=`date -u '+%Y%m%dT%H:%M:%SZ'`"
//
// or to set it to git tag:
// -ldflags "-X main.buildstamp=`git describe --tags`"
//
// -ldflags "-X main.buildstamp=`git describe --tags`"
var buildstamp = "undef"

func main() {
Expand Down

0 comments on commit 7475205

Please sign in to comment.