Files
mayfly-go/server/pkg/starter/banner.go

21 lines
611 B
Go
Raw Normal View History

2022-01-13 17:06:04 +08:00
package starter
2022-03-15 22:27:39 +08:00
import (
2022-08-10 19:46:17 +08:00
"fmt"
"mayfly-go/pkg/config"
"mayfly-go/pkg/logx"
"os"
"runtime/debug"
2022-03-15 22:27:39 +08:00
)
2022-01-13 17:06:04 +08:00
2022-08-10 19:46:17 +08:00
func printBanner() {
buildInfo, _ := debug.ReadBuildInfo()
logx.Print(fmt.Sprintf(`
2022-08-10 19:46:17 +08:00
__ _
_ __ ___ __ _ _ _ / _| |_ _ __ _ ___
| '_ ' _ \ / _' | | | | |_| | | | |_____ / _' |/ _ \
| | | | | | (_| | |_| | _| | |_| |_____| (_| | (_) | version: %s | go_version: %s | pid: %d
2022-08-10 19:46:17 +08:00
|_| |_| |_|\__,_|\__, |_| |_|\__, | \__, |\___/
|___/ |___/ |___/ `, config.Version, buildInfo.GoVersion, os.Getpid()))
2022-01-13 17:06:04 +08:00
}