Documentation
¶
Overview ¶
Package apitest are functions for testing any API (not just Echo).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequest ¶
func GetRequest(url string, opts ...RequestOption) *http.Request
func MustMarshal ¶
func MustMarshal(o interface{}) []byte
func MustUnmarshal ¶
func MustUnmarshal(s string) interface{}
func MustUnmarshalFrom ¶
func NewRequest ¶
func NewRequest(method, url string, body []byte, opts ...RequestOption) *http.Request
Types ¶
type RequestOption ¶
func JsonReq ¶
func JsonReq() RequestOption
func SetQueryParam ¶
func SetQueryParam(key string, value interface{}) RequestOption
func SetQueryParams ¶
func SetQueryParams(values map[string]interface{}) RequestOption
func SetReqHeader ¶
func SetReqHeader(key, value string) RequestOption
Click to show internal directories.
Click to hide internal directories.