From a433b37de11dbce6c2cce8b8bb8cca5000a4f6ca Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 10:07:18 +0100 Subject: [PATCH] ax(mining): replace prose comment with usage example on GetComponentFS AX Principle 2: comments show HOW with real values, not WHAT the signature already says. Co-Authored-By: Charon --- pkg/mining/component.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/mining/component.go b/pkg/mining/component.go index d4c86df..49117b5 100644 --- a/pkg/mining/component.go +++ b/pkg/mining/component.go @@ -9,8 +9,9 @@ import ( //go:embed component/* var componentFS embed.FS -// GetComponentFS returns the embedded file system containing the web component. -// This allows the component to be served even when the package is used as a module. +// fs, err := mining.GetComponentFS() +// if err != nil { return err } +// router.StaticFS("/component", fs) func GetComponentFS() (http.FileSystem, error) { sub, err := fs.Sub(componentFS, "component") if err != nil {