habbgo/habbgo/main.go

17 lines
384 B
Go
Raw Normal View History

2019-11-27 07:28:20 +00:00
package main
import (
"github.com/jtieri/HabbGo/habbgo/server"
"github.com/jtieri/HabbGo/habbgo/utils"
2019-12-04 03:13:18 +00:00
"log"
2019-11-27 07:28:20 +00:00
)
func main() {
2019-12-04 03:13:18 +00:00
//log.Println(string(encoding.EncodeB64(6, 3)))
log.Println("Booting up HabbGo... ")
2019-11-27 07:28:20 +00:00
config := utils.LoadConfig()
2019-12-04 03:13:18 +00:00
gameServer := server.New(config.Server.Port, config.Server.Host, config.Server.MaxConns)
2019-11-27 07:28:20 +00:00
gameServer.Start()
defer gameServer.Stop()
}