Documentation ¶
Index ¶
- func GetField(fields map[string]*gorm.Field, name string) (*gorm.Field, bool)
- func GetLocale(context *qor.Context) string
- func GetNestedModel(value interface{}, alias string, context *qor.Context) interface{}
- func HumanizeString(str string) string
- func NewValue(t reflect.Type) (v reflect.Value)
- func ParseNestedField(value reflect.Value, name string) (reflect.Value, string)
- func ParseTagOption(str string) map[string]string
- func PatchURL(originalURL string, params ...interface{}) (patchedURL string, err error)
- func Stringify(object interface{}) string
- func ToArray(value interface{}) (values []string)
- func ToFloat(value interface{}) float64
- func ToInt(value interface{}) int64
- func ToParamString(str string) string
- func ToString(value interface{}) string
- func ToUint(value interface{}) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNestedModel ¶
func HumanizeString ¶
Humanize separates string based on capitalizd letters e.g. "OrderItem" -> "Order Item"
func ParseNestedField ¶
Profile.Name
func ParseTagOption ¶
func PatchURL ¶
PatchURL updates the query part of the current request url. You can access it in template by `patch_url`.
patch_url "key" "value"
func ToParamString ¶
ToParamString replaces spaces and separates words (by uppercase letters) with underscores in a string, also downcase it e.g. ToParamString -> to_param_string, To ParamString -> to_param_string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.