1
0
mirror of https://github.com/beego/bee.git synced 2025-06-15 15:20:38 +00:00

print lastPushedTime & update readme.md

This commit is contained in:
wangle
2020-09-14 23:27:33 +08:00
parent 81ed06ea01
commit 7a7357a983
9 changed files with 230 additions and 110 deletions

View File

@ -10,6 +10,7 @@ import (
"time"
beeLogger "github.com/beego/bee/logger"
"github.com/beego/bee/utils"
)
// RuntimeInfo holds information about the current runtime.
@ -23,6 +24,7 @@ type RuntimeInfo struct {
Compiler string
BeeVersion string
BeegoVersion string
UpdatedAt string
}
// InitBanner loads the banner and prints it to output
@ -60,6 +62,7 @@ func show(out io.Writer, content string) {
runtime.Compiler,
version,
GetBeegoVersion(),
utils.GetLastPushedTime(),
})
if err != nil {
beeLogger.Log.Error(err.Error())