commit a112758bfd20e61b632ba095ab0225779f97f18d Author: Sosokker Date: Sat Feb 1 21:04:42 2025 +0700 feat: add primary struct diff --git a/cmd/go.mod b/cmd/go.mod new file mode 100644 index 0000000..c42bcef --- /dev/null +++ b/cmd/go.mod @@ -0,0 +1,3 @@ +module github.com/Sosokker/openweather-dashboard + +go 1.23.5 diff --git a/cmd/main.go b/cmd/main.go new file mode 100644 index 0000000..582055a --- /dev/null +++ b/cmd/main.go @@ -0,0 +1,25 @@ +package main + +type Coordinate struct { + Lon float32 `json:"lon"` + Lat float32 `json:"lat"` +} + +type Weather struct { + Id int `json:"id"` + Main string `json:"main"` + Description string `json:"description"` +} + +type DataEntry struct { + Name string `json:"name"` + Coord Coordinate + Weather Weather + Rain struct { + PerHour float64 `json:"1h"` + } `json:"rain"` +} + +func main() { + +}