Documentation
¶
Overview ¶
Package dir defines the Dir type and its predefined values.
Text directionality for element content. Controls reading order and text alignment for different languages and writing systems, essential for internationalization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LeftToRight Left-to-right text direction. Default for most languages including English, Spanish, // French, and other Latin-based scripts. Text flows from left edge to right. LeftToRight = Dir("ltr") // RightToLeft Right-to-left text direction. Required for languages like Arabic, Hebrew, Persian, // and Urdu. Text flows from right edge to left with appropriate alignment. RightToLeft = Dir("rtl") // Auto Automatic direction detection based on text content. Browser analyzes text to // determine appropriate direction, useful for mixed-language content. Auto = Dir("auto") )
Variables for Dir values
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.