commit 793fc32b2566210370b235368981f35a40d5a655
parent 1eb75df047e610359403ded7e34e02b551a09c68
Author: Sean Enck <sean@ttypty.com>
Date: Mon, 12 Jan 2026 17:19:26 -0500
take some gopls suggestions
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/internal/app/help/core.go b/internal/app/help/core.go
@@ -165,7 +165,7 @@ func Usage(verbose bool, exe string) ([]string, error) {
}
buf.WriteString(s)
if adding != "" {
- buf.WriteString(fmt.Sprintf("%s\n\n", adding))
+ fmt.Fprintf(&buf, "%s\n\n", adding)
}
}
results = append(results, strings.Split(strings.TrimSpace(buf.String()), "\n")...)
diff --git a/internal/config/core.go b/internal/config/core.go
@@ -201,7 +201,7 @@ func readNested(v reflect.Type, root string) []string {
// TextPositionFields is the displayable set of templated fields
func TextPositionFields() string {
- return strings.Join(readNested(reflect.TypeOf(Word{}), ""), ", ")
+ return strings.Join(readNested(reflect.TypeFor[Word](), ""), ", ")
}
// NewFeatureError creates an error if a feature is not enabled