From 6b4e1922b0e62a24fa330598b82a1058a154adce Mon Sep 17 00:00:00 2001 From: Thales Maciel Date: Tue, 28 Apr 2026 15:08:12 -0300 Subject: [PATCH] model: gofmt VMRecord struct alignment Stats and Workspace fields landed in 6b543cb with column alignment that gofmt wants to pull tighter; rerun gofmt so the new pre-commit hook's `gofmt -l` gate passes. Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/model/types.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/internal/model/types.go b/internal/model/types.go index 61da2e6..1121b3a 100644 --- a/internal/model/types.go +++ b/internal/model/types.go @@ -139,17 +139,17 @@ type VMStats struct { } type VMRecord struct { - ID string `json:"id"` - Name string `json:"name"` - ImageID string `json:"image_id"` - State VMState `json:"state"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - LastTouchedAt time.Time `json:"last_touched_at"` - Spec VMSpec `json:"spec"` - Runtime VMRuntime `json:"runtime"` - Stats VMStats `json:"stats"` - Workspace VMWorkspace `json:"workspace"` + ID string `json:"id"` + Name string `json:"name"` + ImageID string `json:"image_id"` + State VMState `json:"state"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + LastTouchedAt time.Time `json:"last_touched_at"` + Spec VMSpec `json:"spec"` + Runtime VMRuntime `json:"runtime"` + Stats VMStats `json:"stats"` + Workspace VMWorkspace `json:"workspace"` } type VMCreateRequest struct { @@ -177,10 +177,10 @@ type VMSetRequest struct { // repo. Stored as workspace_json in the vms table; zero value means // no workspace has been prepared on this VM yet. type VMWorkspace struct { - GuestPath string `json:"guest_path,omitempty"` - SourcePath string `json:"source_path,omitempty"` - HeadCommit string `json:"head_commit,omitempty"` - PreparedAt time.Time `json:"prepared_at,omitempty"` + GuestPath string `json:"guest_path,omitempty"` + SourcePath string `json:"source_path,omitempty"` + HeadCommit string `json:"head_commit,omitempty"` + PreparedAt time.Time `json:"prepared_at,omitempty"` } type WorkspacePrepareMode string