Add startup banner
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package server
|
||||
|
||||
import "fmt"
|
||||
|
||||
// http://patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=Cloud%20Sonic
|
||||
const banner = `
|
||||
██████╗██╗ ██████╗ ██╗ ██╗██████╗ ███████╗ ██████╗ ███╗ ██╗██╗ ██████╗
|
||||
██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ██╔════╝██╔═══██╗████╗ ██║██║██╔════╝
|
||||
██║ ██║ ██║ ██║██║ ██║██║ ██║ ███████╗██║ ██║██╔██╗ ██║██║██║
|
||||
██║ ██║ ██║ ██║██║ ██║██║ ██║ ╚════██║██║ ██║██║╚██╗██║██║██║
|
||||
╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ███████║╚██████╔╝██║ ╚████║██║╚██████╗
|
||||
╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═════╝
|
||||
Version %s
|
||||
|
||||
`
|
||||
|
||||
func showBanner(version string) {
|
||||
fmt.Printf(banner, version)
|
||||
}
|
||||
Reference in New Issue
Block a user