feat: add primary struct

This commit is contained in:
Sosokker 2025-02-01 21:04:42 +07:00
commit a112758bfd
2 changed files with 28 additions and 0 deletions

3
cmd/go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/Sosokker/openweather-dashboard
go 1.23.5

25
cmd/main.go Normal file
View File

@ -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() {
}