Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EN = language.English.String() CN = language.Chinese.String() JP = language.Japanese.String() TC = language.TraditionalChinese.String() )
View Source
var Lang = LangMap{ language.Chinese.String(): cn, language.English.String(): en, language.Japanese.String(): jp, language.TraditionalChinese.String(): tc, "cn": cn, "en": en, "jp": jp, "tc": tc, }
Lang is the global LangMap.
Functions ¶
func GetFromHtml ¶
GetFromHtml return the value of given scopes and template.HTML value.
func GetWithScope ¶ added in v1.0.0
GetWithScope return the value of given scopes.
func WithScopes ¶ added in v1.0.0
WithScopes join scopes prefix and the value.
Types ¶
Click to show internal directories.
Click to hide internal directories.