ax(mining): replace prose comment with usage example on GetComponentFS
Some checks failed
Security Scan / security (push) Waiting to run
Test / test (push) Has been cancelled

AX Principle 2: comments show HOW with real values, not WHAT the
signature already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 10:07:18 +01:00
parent 985fc78c40
commit a433b37de1
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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 {