From c680422366d7a4fc358917b8c8af5dd5bae792ae Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 17 Feb 2026 08:06:10 +0200 Subject: Align codebase with Go best practices (ordering and style) - 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 --- internal/app/store.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/app') 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) -- cgit v1.2.3