Skip to content

Instantly share code, notes, and snippets.

@dinushkaf
dinushkaf / GoMgoSample-1.go
Created Sep 26, 2018 — forked from 345161974/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 {