
* Remove dead code related to golangci.com * remove old build tags * stale bot: remove bug label from `exemptLabels` * order `gitignore` entries alphabetically * doc: order `linters-settings` alphabetically * remove obsolete exclude rule * release: add docs prefix to skip the commit in the changelog
18 lines
291 B
Go
18 lines
291 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime/debug"
|
|
)
|
|
|
|
//nolint:gochecknoinits
|
|
func init() {
|
|
if info, available := debug.ReadBuildInfo(); available {
|
|
if date == "" {
|
|
version = info.Main.Version
|
|
commit = fmt.Sprintf("(unknown, mod sum: %q)", info.Main.Sum)
|
|
date = "(unknown)"
|
|
}
|
|
}
|
|
}
|