Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Off Disable automatic capitalization. No text is automatically capitalized. Best for // technical terms, codes, usernames, or when precise text entry is required. Off = AutoCapitalize("off") // None Same as 'off' - disable automatic capitalization. Alternative syntax that achieves // identical behavior to the 'off' value. None = AutoCapitalize("none") // On Enable automatic capitalization using default behavior. Typically capitalizes the // first letter of sentences, similar to 'sentences' value. On = AutoCapitalize("on") // Sentences Capitalize the first letter of each sentence. Standard behavior for most text input // where users enter natural language content like messages or comments. Sentences = AutoCapitalize("sentences") // Words Capitalize the first letter of each word. Useful for fields like names, titles, // addresses where each word should start with a capital letter. Words = AutoCapitalize("words") // Characters Capitalize every character entered. Creates ALL CAPS text input, useful for // special codes, abbreviations, or when uppercase input is required. Characters = AutoCapitalize("characters") )
Variables for AutoCapitalize values
Functions ¶
This section is empty.
Types ¶
type AutoCapitalize ¶
type AutoCapitalize []byte
AutoCapitalize Controls automatic text capitalization on virtual keyboards (mobile devices). Improves mobile user experience by reducing manual capitalization for names, addresses, and titles.
func Custom ¶
func Custom(value string) AutoCapitalize
Custom allows setting a custom AutoCapitalize value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.
Click to show internal directories.
Click to hide internal directories.