main.go 448 B

123456789101112131415161718192021
  1. // API doc: https://wiki.summercamp.local/display/PIN/Pinguin+server+API
  2. package main
  3. import (
  4. "log"
  5. "net/http"
  6. extStomp "github.com/go-stomp/stomp"
  7. "battlecamp-go-server/games"
  8. "battlecamp-go-server/stomp"
  9. )
  10. var currentGames games.GameServer = games.New()
  11. var stompConnection *extStomp.Conn
  12. func main() {
  13. stompConnection = stomp.DailStomp()
  14. defer stompConnection.Disconnect()
  15. log.Fatal(http.ListenAndServe(":8080", newUrlRouter()))
  16. }