This commit is contained in:
parent
afbe9e74a5
commit
14e203e821
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -39,7 +39,7 @@ func main() {
|
||||||
})
|
})
|
||||||
|
|
||||||
http.HandleFunc("/json", func(writer http.ResponseWriter, request *http.Request) {
|
http.HandleFunc("/json", func(writer http.ResponseWriter, request *http.Request) {
|
||||||
var data map[string]interface{}
|
data := make(map[string]interface{})
|
||||||
|
|
||||||
data["lat"] = lastData["lat"]
|
data["lat"] = lastData["lat"]
|
||||||
data["lon"] = lastData["lon"]
|
data["lon"] = lastData["lon"]
|
||||||
|
|
Loading…
Reference in a new issue