mirror of
https://github.com/tinode/chat.git
synced 2025-03-14 10:05:07 +00:00
gofmt -s
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user