| 123456789101112131415161718192021 |
- // API doc: https://wiki.summercamp.local/display/PIN/Pinguin+server+API
- package main
- import (
- "log"
- "net/http"
- extStomp "github.com/go-stomp/stomp"
- "battlecamp-go-server/games"
- "battlecamp-go-server/stomp"
- )
- var currentGames games.Games = games.New()
- var stompConnection *extStomp.Conn
- func main() {
- stompConnection = stomp.DailStomp()
- defer stompConnection.Disconnect()
- log.Fatal(http.ListenAndServe(":8080", newUrlRouter()))
- }
|