Skip to content

Instantly share code, notes, and snippets.

@345161974
345161974 / GoMgoSample-1.go
Created Jun 12, 2017 — forked from ardan-bkennedy/GoMgoSample-1.go
Sample Go and MGO example
View GoMgoSample-1.go
type (
// BuoyCondition contains information for an individual station.
BuoyCondition struct {
WindSpeed float64 `bson:"wind_speed_milehour"`
WindDirection int `bson:"wind_direction_degnorth"`
WindGust float64 `bson:"gust_wind_speed_milehour"`
}
// BuoyLocation contains the buoy's location.
BuoyLocation struct {