gofmt
This commit is contained in:
@@ -5,3 +5,6 @@ adsb-ws: *.go
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f adsb-ws
|
rm -f adsb-ws
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
gofmt -w .
|
||||||
|
|||||||
@@ -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{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type connection struct {
|
type connection struct {
|
||||||
ws *websocket.Conn
|
ws *websocket.Conn
|
||||||
send chan []byte
|
send chan []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user