Documentation ¶
Overview ¶
Internationalization support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Available languages. Langs = []string{ "en", "ru", } // Some UI constants. Months = []string{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", } Days = []string{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", } )
Functions ¶
func DefaultFromReq ¶
Try to guess appropriate default language based on request's IP.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.