summaryrefslogtreecommitdiff
path: root/internal/app/store.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-17 08:06:10 +0200
committerPaul Buetow <paul@buetow.org>2026-02-17 08:06:10 +0200
commitc680422366d7a4fc358917b8c8af5dd5bae792ae (patch)
tree69e6f787e8d5a2432a2b044dceaf3749d7938b52 /internal/app/store.go
parent41e25da4ccb3121ee9d22f8e9ad48568241d897c (diff)
Align codebase with Go best practices (ordering and style)v0.10.1
- Fix struct field alignment in Config and runState - Move parseBool() after Config methods (group methods together) - Move interface satisfaction checks after type definitions in store.go - Move linkScales var to top of display.go with other declarations - Clean up orphaned comment and blank line - Bump version to 0.10.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/app/store.go')
-rw-r--r--internal/app/store.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/app/store.go b/internal/app/store.go
index 9e046a4..ffe00c8 100644
--- a/internal/app/store.go
+++ b/internal/app/store.go
@@ -21,6 +21,10 @@ type hostData struct {
cpu map[string]collector.CPULine
}
+// Compile-time interface satisfaction checks.
+var _ stats.Source = (*Store)(nil)
+var _ collector.StatsStore = (*Store)(nil)
+
// NewStore creates an empty store.
func NewStore() *Store {
return &Store{hosts: make(map[string]*hostData)}
@@ -98,6 +102,3 @@ func (s *Store) getOrCreate(host string) *hostData {
}
return s.hosts[host]
}
-
-var _ stats.Source = (*Store)(nil)
-var _ collector.StatsStore = (*Store)(nil)