This commit is contained in:
crusader 2017-07-26 19:00:51 +09:00
commit d4508a20d5
3 changed files with 27 additions and 17 deletions

1
.gitignore vendored
View File

@ -63,3 +63,4 @@ fabric.properties
vendor/
glide.lock
.DS_Store

17
main.go
View File

@ -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
View 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)
}