package
0.0.0-20220530135635-5127ed87d9c4
Repository: https://github.com/ecletus/core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

FileServer file server that disabled file listing.
GetAbsURL get absolute URL from request, refer: https://stackoverflow.com/questions/6899069/why-are-request-url-host-and-scheme-blank-in-the-development-server.
No description provided by the author
HumanizeString Humanize separates string based on capitalizd letters e.g.
HumanizeString Humanize separates string based on capitalizd letters e.g.
No description provided by the author
No description provided by the author
Type get value's model type.
HumanizeString Humanize separates string based on capitalizd letters e.g.
No description provided by the author
No description provided by the author
No description provided by the author
NewValue new struct value with reflect type.
No description provided by the author
ParamsMatch match string by param.
No description provided by the author
ParseTagOption parse tag options to hash.
No description provided by the author
SetCookie set cookie for context.
No description provided by the author
No description provided by the author
SortFormKeys sort form keys.
Stringify stringify any data, if it is a struct, will try to use its Name, Title, Code field, else will use its primary key.
StringifyContext stringify any data, if it is a struct, will try to use its Name, Title, Code field, else will use its primary key.
No description provided by the author
No description provided by the author
No description provided by the author
ToArray get array from value, will ignore blank string to convert it to array.
ToFloat get float from value, if passed value is empty string, result will be 0.
ToInt get int from value, if passed value is empty string, result will be 0.
ToParamString replaces spaces and separates words (by uppercase letters) with underscores in a string, also downcase it e.g.
ToString get string from value, if passed value is a slice, will use the last element.
ToUint get uint from value, if passed value is empty string, result will be 0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AppRoot app root path.
DefaultLang Default App Language.
FormatTime format time to string Overwrite the default logic with utils.FormatTime = func(time time.Time, layout string, context *qor.Context) string { // ...
GetLocale get locale from request, cookie, after get the locale, will write the locale to the cookie if possible Overwrite the default logic with utils.GetLocale = func(context *qor.Context) string { // ...
HTMLSanitizer html sanitizer to avoid XSS.
ParseTime parse time from string Overwrite the default logic with utils.ParseTime = func(timeStr string, context *qor.Context) (time.Time, error) { // ...

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

ContextKey defined type used for context's key.
No description provided by the author
No description provided by the author