a moved case of nakedret
Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
parent
b190e6e910
commit
9be1cd6277
1 changed files with 4 additions and 6 deletions
|
|
@ -37,15 +37,13 @@ func FormatVersion() string {
|
|||
}
|
||||
|
||||
// FormatBuildInfo returns build time and go version info
|
||||
func FormatBuildInfo() (build string, goVer string) {
|
||||
if buildTime != "" {
|
||||
build = buildTime
|
||||
}
|
||||
goVer = goVersion
|
||||
func FormatBuildInfo() (string, string) {
|
||||
build := buildTime
|
||||
goVer := goVersion
|
||||
if goVer == "" {
|
||||
goVer = runtime.Version()
|
||||
}
|
||||
return
|
||||
return build, goVer
|
||||
}
|
||||
|
||||
// GetVersion returns the version string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue