Added moon route and changed Date fields from pointers to values

This commit is contained in:
2025-06-18 10:44:19 +02:00
parent 87605024c7
commit a87b6a0c06
10 changed files with 188 additions and 28 deletions

9
types/moon.go Normal file
View File

@@ -0,0 +1,9 @@
package types
// The Moon data type, representing the moon phase,
// the moon phase icon and the moon progress(%).
type Moon struct {
Icon string `json:"icon"`
Phase string `json:"phase"`
Percentage string `json:"percentage"`
}