Documentation ¶
Index ¶
- func ExitWithMsg(str string, value ...interface{})
- 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 ExitWithMsg ¶
func ExitWithMsg(str string, value ...interface{})
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 "google.com" "key" "value"
func ToParamString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.