Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutizeURL ¶
AbsolutizeURL returns an absolute URL from the given URI and http.Request
func ListStaticFiles ¶
ListStaticFiles get all file names of the static files that are in the "server/static/*/<subDir>" directories. Returned If diskPath is true, returned file names are relative to the yep directory (e.g. yep/server/static/src/js/foo.js) otherwise file names are relative to the http root (e.g. /static/src/js/foo.js)
Types ¶
type LangDirection ¶
type LangDirection string
A LangDirection defines the direction of a language either left-to-right or right-to-left
const ( // LangDirectionLTR defines a language written from left to right LangDirectionLTR LangDirection = "ltr" // LangDirectionRTL defines a language written from right to left LangDirectionRTL LangDirection = "rtl" )
type LangParameters ¶
type LangParameters struct { DateFormat string `json:"date_format"` Direction LangDirection `json:"lang_direction"` ThousandsSep string `json:"thousands_sep"` TimeFormat string `json:"time_format"` DecimalPoint string `json:"decimal_point"` ID int64 `json:"id"` Grouping string `json:"grouping"` }
LangParameters defines the parameters of a language locale
Click to show internal directories.
Click to hide internal directories.