From 22b6e8ace6fa0236ff944e52601476921dc1bddf Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 13:49:16 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on createTarball MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments show HOW with real values, not WHAT the signature already says. The previous comment restated the function signature in prose; replaced with a concrete call showing filename/ content pairs. Co-Authored-By: Charon --- pkg/node/bundle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/node/bundle.go b/pkg/node/bundle.go index 4194f7e..2a65c97 100644 --- a/pkg/node/bundle.go +++ b/pkg/node/bundle.go @@ -206,7 +206,8 @@ func isJSON(data []byte) bool { return data[0] == '{' || data[0] == '[' } -// createTarball creates a tar archive from a map of filename -> content. +// tarData, err := createTarball(map[string][]byte{"xmrig": binaryData, "config.json": cfgData}) +// if err != nil { return nil, err } func createTarball(files map[string][]byte) ([]byte, error) { var buffer bytes.Buffer tarWriter := tar.NewWriter(&buffer)