From 6b13197f479b98c323140d3e9d9998c32f9f6ac9 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 16 Jul 2026 06:15:34 +0000 Subject: gofmt internal/models/types.go and budget.go Fix formatting and alignment violations: align struct field tags in Task, realign Weekday comment in AvailabilityBlock, and remove extra blank line before CalendarEvent. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session --- internal/models/budget.go | 2 +- internal/models/types.go | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/internal/models/budget.go b/internal/models/budget.go index 8a3917a..2dc29aa 100644 --- a/internal/models/budget.go +++ b/internal/models/budget.go @@ -6,7 +6,7 @@ package models // handlers.ComputeBudgetPeriod. type AvailabilityBlock struct { ID string `json:"id"` - Weekday int `json:"weekday"` // 0-6, Sun-Sat + Weekday int `json:"weekday"` // 0-6, Sun-Sat StartTime string `json:"start_time"` // "18:00" EndTime string `json:"end_time"` // "20:00" Label string `json:"label"` diff --git a/internal/models/types.go b/internal/models/types.go index 1267d31..e3164de 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -8,18 +8,18 @@ import ( // Task represents a native task type Task struct { - ID string `json:"id"` - Content string `json:"content"` - Description string `json:"description"` - ProjectID string `json:"project_id"` - ProjectName string `json:"project_name"` - DueDate *time.Time `json:"due_date,omitempty"` - Priority int `json:"priority"` - Completed bool `json:"completed"` + ID string `json:"id"` + Content string `json:"content"` + Description string `json:"description"` + ProjectID string `json:"project_id"` + ProjectName string `json:"project_name"` + DueDate *time.Time `json:"due_date,omitempty"` + Priority int `json:"priority"` + Completed bool `json:"completed"` Labels []string `json:"labels"` EstimatedMinutes int `json:"estimated_minutes,omitempty"` URL string `json:"url"` - CreatedAt time.Time `json:"created_at"` + CreatedAt time.Time `json:"created_at"` // Recurrence (doot-native tasks only). RecurrenceSeriesID != "" is the // indicator that a task is recurring. @@ -146,7 +146,6 @@ type Card struct { URL string `json:"url"` } - // CalendarEvent represents a Google Calendar event type CalendarEvent struct { ID string `json:"id"` -- cgit v1.2.3