This commit is contained in:
Ian Gulliver
2016-03-10 21:49:15 -08:00
parent 95a7a3c8c5
commit 633850b3be
3 changed files with 7 additions and 4 deletions

View File

@@ -5,3 +5,6 @@ adsb-ws: *.go
clean: clean:
rm -f adsb-ws rm -f adsb-ws
fmt:
gofmt -w .

View File

@@ -2,9 +2,9 @@ package main
type hub struct { type hub struct {
connections map[*connection]bool connections map[*connection]bool
broadcast chan []byte broadcast chan []byte
register chan *connection register chan *connection
unregister chan *connection unregister chan *connection
} }
var h = hub{ var h = hub{

View File

@@ -8,7 +8,7 @@ import (
) )
type connection struct { type connection struct {
ws *websocket.Conn ws *websocket.Conn
send chan []byte send chan []byte
} }