- Add explicit nil checks to toInt, toInt64, toFloat64 for consistency - Standardize error messages to use %q for user-provided strings - Export GetGrammarData for symmetry with SetGrammarData - Standardize String() doc comments to "the TypeName" pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
318 B
Go
16 lines
318 B
Go
// Package i18n provides internationalization for the CLI.
|
|
package i18n
|
|
|
|
// String returns the string representation of the Mode.
|
|
func (m Mode) String() string {
|
|
switch m {
|
|
case ModeNormal:
|
|
return "normal"
|
|
case ModeStrict:
|
|
return "strict"
|
|
case ModeCollect:
|
|
return "collect"
|
|
default:
|
|
return "unknown"
|
|
}
|
|
}
|