This commit is contained in:
Byung Jun Park 2017-07-14 22:58:21 +09:00
parent 0d428d20c0
commit 57d2e734aa
3 changed files with 27 additions and 17 deletions

1
.gitignore vendored
View File

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

17
main.go
View File

@ -12,21 +12,6 @@ import (
"git.loafle.net/overflow/overflow_service_websocket/server" "git.loafle.net/overflow/overflow_service_websocket/server"
) )
const (
version = "1.0.0"
website = "https://www.overflow.cloud"
banner = `
`
)
func main() { func main() {
// Initialize config // Initialize config
@ -36,7 +21,7 @@ func main() {
useTLS := config.Server.Tls useTLS := config.Server.Tls
sConfig := server.NewOptions(&config.Websocket) sConfig := server.NewOptions(&config.Websocket)
// Print banner // Print banner
log.Println(banner) printVersion()
// Config TLS // 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)
}