Thomas van Weert
9edcb83fc4
CHG: use concurrent map instead of regular map with lock DEL: global session control, moved to per server only DEL: unused command system
17 lines
313 B
Go
Executable file
17 lines
313 B
Go
Executable file
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/ParadoxPixel/ThemePark-Websocket/objects"
|
|
"github.com/ParadoxPixel/ThemePark-Websocket/server"
|
|
)
|
|
|
|
func main() {
|
|
config, err := objects.LoadConfiguration("config.json")
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
|
|
server.Start("/", config.Address, config.Debug)
|
|
}
|