mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:33:29 +00:00
fixed GeoObject struct to handle json marshalling
This commit is contained in:
@@ -2,5 +2,18 @@ package main
|
||||
|
||||
type Payload struct {
|
||||
Content string `json:"content"`
|
||||
Username string `json:"username,omitempty"` // Optional field
|
||||
Username string `json:"username,omitempty"`
|
||||
}
|
||||
|
||||
type GeoObject struct {
|
||||
UID string `json:"uid,omitempty"`
|
||||
Longitude float32 `json:"longitude"`
|
||||
Latitude float32 `json:"latitude"`
|
||||
Attitude string `json:"attitude"`
|
||||
Bearing int `json:"bearing,omitempty"`
|
||||
Distance int `json:"distance,omitempty"`
|
||||
GeoObject string `json:"geoObject"`
|
||||
How string `json:"how,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Timeout int `json:"timeout,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user