gofmt
This commit is contained in:
@@ -5,3 +5,6 @@ adsb-ws: *.go
|
||||
|
||||
clean:
|
||||
rm -f adsb-ws
|
||||
|
||||
fmt:
|
||||
gofmt -w .
|
||||
|
||||
@@ -2,9 +2,9 @@ package main
|
||||
|
||||
type hub struct {
|
||||
connections map[*connection]bool
|
||||
broadcast chan []byte
|
||||
register chan *connection
|
||||
unregister chan *connection
|
||||
broadcast chan []byte
|
||||
register chan *connection
|
||||
unregister chan *connection
|
||||
}
|
||||
|
||||
var h = hub{
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
type connection struct {
|
||||
ws *websocket.Conn
|
||||
ws *websocket.Conn
|
||||
send chan []byte
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user