diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 06:15:34 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 06:15:34 +0000 |
| commit | 6b13197f479b98c323140d3e9d9998c32f9f6ac9 (patch) | |
| tree | 92c6e45be34ad852720b3402f0758c212891f827 /internal/models | |
| parent | 4d2b192c7d7aae09d7a2b849b6fbb60cd7c0c23e (diff) | |
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/budget.go | 2 | ||||
| -rw-r--r-- | 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"` |
