From ec0ab317ea2d88a06a3338fc8b2460f843dd4542 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 17:08:47 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on XMRigMiner AX principle 2: comments show HOW with real values, not WHAT the type is. The old comment restated the struct definition. Replaced with a concrete construction example. Co-Authored-By: Charon --- pkg/mining/xmrig.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/mining/xmrig.go b/pkg/mining/xmrig.go index 5705b0f..c83d987 100644 --- a/pkg/mining/xmrig.go +++ b/pkg/mining/xmrig.go @@ -15,7 +15,9 @@ import ( "github.com/adrg/xdg" ) -// XMRigMiner represents an XMRig miner, embedding the BaseMiner for common functionality. +// miner := &XMRigMiner{} +// miner.Name = "xmrig" +// miner.BinaryPath = "/usr/local/bin/xmrig" type XMRigMiner struct { BaseMiner FullStats *XMRigSummary `json:"-"` // Excluded from JSON to prevent race during marshaling