ing
This commit is contained in:
parent
0d428d20c0
commit
57d2e734aa
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -62,4 +62,5 @@ fabric.properties
|
|||
*.iml
|
||||
|
||||
vendor/
|
||||
glide.lock
|
||||
glide.lock
|
||||
.DS_Store
|
17
main.go
17
main.go
|
@ -12,21 +12,6 @@ import (
|
|||
"git.loafle.net/overflow/overflow_service_websocket/server"
|
||||
)
|
||||
|
||||
const (
|
||||
version = "1.0.0"
|
||||
website = "https://www.overflow.cloud"
|
||||
banner = `
|
||||
|
||||
██████╗ ██╗ ██╗███████╗██████╗ ███████╗██╗ ██████╗ ██╗ ██╗
|
||||
██╔═══██╗██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██╔═══██╗██║ ██║
|
||||
██║ ██║██║ ██║█████╗ ██████╔╝█████╗ ██║ ██║ ██║██║ █╗ ██║
|
||||
██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗██╔══╝ ██║ ██║ ██║██║███╗██║
|
||||
╚██████╔╝ ╚████╔╝ ███████╗██║ ██║██║ ███████╗╚██████╔╝╚███╔███╔╝
|
||||
╚═════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝
|
||||
|
||||
`
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
// Initialize config
|
||||
|
@ -36,7 +21,7 @@ func main() {
|
|||
useTLS := config.Server.Tls
|
||||
sConfig := server.NewOptions(&config.Websocket)
|
||||
// Print banner
|
||||
log.Println(banner)
|
||||
printVersion()
|
||||
|
||||
// Config TLS
|
||||
|
||||
|
|
24
version.go
Normal file
24
version.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package main
|
||||
|
||||
import "log"
|
||||
|
||||
const (
|
||||
version = "1.0.0"
|
||||
website = "https://www.overflow.cloud"
|
||||
banner = `
|
||||
|
||||
██████╗ ██╗ ██╗███████╗██████╗ ███████╗██╗ ██████╗ ██╗ ██╗
|
||||
██╔═══██╗██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██╔═══██╗██║ ██║
|
||||
██║ ██║██║ ██║█████╗ ██████╔╝█████╗ ██║ ██║ ██║██║ █╗ ██║
|
||||
██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗██╔══╝ ██║ ██║ ██║██║███╗██║
|
||||
╚██████╔╝ ╚████╔╝ ███████╗██║ ██║██║ ███████╗╚██████╔╝╚███╔███╔╝
|
||||
╚═════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝
|
||||
|
||||
`
|
||||
)
|
||||
|
||||
func printVersion() {
|
||||
log.Printf("Version: %s\n", version)
|
||||
log.Printf("Url: %s\n", website)
|
||||
log.Println(banner)
|
||||
}
|
Loading…
Reference in New Issue
Block a user