# README
goDXMap
This is a simple Go library to integrate with F5UUI's HamDXMap. It opens a websocket and allows to display different things on the map, using the wtSock protocol.
Example
// see also ./example/main.go
func main() {
server := godxmap.NewServer(":12345")
go serveCallsigns(server)
err := server.Serve()
if err != nil && err != http.ErrServerClosed {
log.Fatal(err)
}
}
func serveCallsigns(server *godxmap.Server) {
callsigns := []string{"F5UII", "W1AW", "PY1PY", "DL3NEY", "ZL2CTM"}
for _, callsign := range callsigns {
time.Sleep(10 * time.Second)
server.ShowPartialCall(callsign)
}
err := server.Close()
if err != nil {
log.Printf("error closing the server: %v", err)
}
}
License
This library is published under the MIT License.
Copyright Florian Thienel
# Packages
No description provided by the author
# Functions
NewServer creates a new server instance for the given listening address.