Documentation ¶
Index ¶
- func Atoi(in string) (int, error)
- func Contains(haystack []string, needle string) bool
- func FormatErrorMessage(status string, v interface{}) string
- func IsNil(i interface{}) bool
- func NewError(s string) error
- func NewStrictDecoder(data []byte) *json.Decoder
- func ParameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, ...)
- func ParameterValueToString(obj interface{}, key string) string
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- func SelectHeaderAccept(accepts []string) string
- func SelectHeaderContentType(contentTypes []string) string
- func Strlen(s string) int
- type FormFile
- type MappedNullable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatErrorMessage ¶
FormatErrorMessage using title and detail when model implements rfc7807
func NewStrictDecoder ¶
NewStrictDecoder is a wrapper for strict JSON decoding
func ParameterAddToHeaderOrQuery ¶
func ParameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string)
ParameterAddToHeaderOrQuery adds the provided object to the request header or url query supporting deep object syntax
func ParameterValueToString ¶
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
func SelectHeaderAccept ¶
SelectHeaderAccept join all accept types and return
func SelectHeaderContentType ¶
SelectHeaderContentType select a content type from the available list.
Types ¶
type MappedNullable ¶
Click to show internal directories.
Click to hide internal directories.