Documentation
¶
Overview ¶
Package autocorrect defines the AutoCorrect type and its predefined values.
Automatic text correction on mobile devices and browsers. Controls whether browsers automatically correct spelling and text input for improved user experience.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // On Enable automatic text correction and spelling fixes. Browser or device will // automatically correct misspelled words and apply predictive text suggestions. On = AutoCorrect("on") // Off Disable automatic text correction. No spelling fixes or predictive corrections // are applied, preserving exact user input including intentional misspellings. Off = AutoCorrect("off") )
Variables for AutoCorrect values
Functions ¶
This section is empty.
Types ¶
type AutoCorrect ¶
type AutoCorrect []byte
AutoCorrect is a typed value for the HTML autocorrect attribute.
Automatic text correction on mobile devices and browsers. Controls whether browsers automatically correct spelling and text input for improved user experience.
func Custom ¶
func Custom(value string) AutoCorrect
Custom allows setting a custom AutoCorrect value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.