Documentation ¶
Index ¶
- Constants
- func ENUM(values ...string) []string
- func GetAsBool(key string, r *http.Request) *bool
- func GetAsBoolFromContext(key string, ctx context.Context) *bool
- func GetAsFloat32(key string, r *http.Request) *float32
- func GetAsFloat32FromContext(key string, ctx context.Context) *float32
- func GetAsFloat64(key string, r *http.Request) *float64
- func GetAsFloat64FromContext(key string, ctx context.Context) *float64
- func GetAsInt(key string, r *http.Request) *int
- func GetAsInt32(key string, r *http.Request) *int32
- func GetAsInt32FromContext(key string, ctx context.Context) *int32
- func GetAsInt64(key string, r *http.Request) *int64
- func GetAsInt64FromContext(key string, ctx context.Context) *int64
- func GetAsIntFromContext(key string, ctx context.Context) *int
- func GetAsString(key string, r *http.Request) *string
- func GetAsStringFromContext(key string, ctx context.Context) *string
- func GetAsTime(key string, r *http.Request) *time.Time
- func GetAsTimeFromContext(key string, ctx context.Context) *time.Time
- func ParseBool(value string, key string, validatedMap R, errors *[]error)
- func ParseDate(value string, key string, format string, validatedMap R, errors *[]error)
- func ParseEnum(value string, enum []string, key string, validatedMap R, errors *[]error)
- func ParseFloat(value string, key string, bits int, validatedMap R, errors *[]error)
- func ParseInt(value string, key string, bits int, validatedMap R, errors *[]error)
- func ParseString(value string, key string, validatedMap R, errors *[]error)
- func ValidateParams(requirement R, actual map[string]string, destination R, required bool) error
- type R
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetAsBoolFromContext ¶ added in v1.0.36
func GetAsFloat32FromContext ¶ added in v1.0.36
func GetAsFloat64FromContext ¶ added in v1.0.36
func GetAsInt32FromContext ¶ added in v1.0.36
func GetAsInt64FromContext ¶ added in v1.0.36
func GetAsIntFromContext ¶ added in v1.0.36
func GetAsStringFromContext ¶ added in v1.0.36
func GetAsTimeFromContext ¶ added in v1.0.36
func ParseFloat ¶
func ParseString ¶ added in v1.0.31
Types ¶
Click to show internal directories.
Click to hide internal directories.