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

View File

@@ -24,7 +24,7 @@ func (date *ZephyrDate) UnmarshalJSON(b []byte) error {
return nil
}
func (date *ZephyrDate) MarshalJSON() ([]byte, error) {
func (date ZephyrDate) MarshalJSON() ([]byte, error) {
if date.Date.IsZero() {
return []byte("\"\""), nil
}