fix: Replace deprecated strings.Title with cases.Title (gt-jdn2t)
Use golang.org/x/text/cases.Title(language.English) instead of the deprecated strings.Title function. Updated formula.go (3 usages) and patrol_helpers.go (1 usage). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/steveyegge/gastown/internal/style"
|
||||
"golang.org/x/text/cases"
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
// PatrolConfig holds role-specific patrol configuration.
|
||||
@@ -207,7 +209,7 @@ func outputPatrolContext(cfg PatrolConfig) {
|
||||
}
|
||||
|
||||
// Show patrol work loop instructions
|
||||
fmt.Printf("**%s Patrol Work Loop:**\n", strings.Title(cfg.RoleName))
|
||||
fmt.Printf("**%s Patrol Work Loop:**\n", cases.Title(language.English).String(cfg.RoleName))
|
||||
for i, step := range cfg.WorkLoopSteps {
|
||||
fmt.Printf("%d. %s\n", i+1, step)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user