Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToReadCloser ¶
func ToReadCloser(enc encoder.Encoder, in interface{}) io.ReadCloser
Types ¶
type JSONGambit ¶
type JSONGambit struct { String string `json:"string"` StringP *string `json:"string_2"` Int int `json:"int"` IntP *int `json:"int_2"` UInt uint `json:"uint"` UIntP *uint `json:"uint_2"` Float float64 `json:"float"` FloatP *float64 `json:"float_2"` Bool bool `json:"bool"` BoolP *bool `json:"bool_2"` }
type TestStruct ¶
type TestStruct struct { PathString string `path:"string"` PathInt int `path:"int"` PathUInt uint `path:"uint"` PathFloat float64 `path:"float"` PathBool bool `path:"bool"` HeaderString string `header:"string"` HeaderInt int `header:"int"` HeaderUInt uint `header:"uint"` HeaderFloat float64 `header:"float"` HeaderBool bool `header:"bool"` HeaderJSON JSONGambit `header:"json"` QueryString string `query:"string"` QueryInt int `query:"int"` QueryUInt uint `query:"uint"` QueryFloat float64 `query:"float"` QueryBool bool `query:"bool"` QueryJSON JSONGambit `query:"json"` Body *JSONGambit `body:"request"` }
func GetTestStruct ¶
func GetTestStruct() TestStruct
Click to show internal directories.
Click to hide internal directories.