mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package starter
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"mayfly-go/pkg/config"
 | 
						|
	"mayfly-go/pkg/logx"
 | 
						|
	"os"
 | 
						|
	"runtime/debug"
 | 
						|
)
 | 
						|
 | 
						|
func printBanner() {
 | 
						|
	buildInfo, _ := debug.ReadBuildInfo()
 | 
						|
	logx.Print(fmt.Sprintf(`
 | 
						|
                        __ _                         
 | 
						|
 _ __ ___   __ _ _   _ / _| |_   _        __ _  ___  
 | 
						|
| '_ ' _ \ / _' | | | | |_| | | | |_____ / _' |/ _ \ 
 | 
						|
| | | | | | (_| | |_| |  _| | |_| |_____| (_| | (_) |   version: %s | go_version: %s | pid: %d
 | 
						|
|_| |_| |_|\__,_|\__, |_| |_|\__, |      \__, |\___/ 
 | 
						|
                 |___/       |___/       |___/       `, config.Version, buildInfo.GoVersion, os.Getpid()))
 | 
						|
}
 |