Versions in this module Expand all Collapse all v4 v4.0.0 Dec 9, 2019 Changes in this version + const DefaultBaseURL + const DefaultMediaType + const UserAgent + func AddQueries(s string, opt interface{}) (string, error) + func CheckResponse(r *http.Response) error + func StructToValues(data interface{}) (url.Values, error) + func TestFormValues(t *testing.T, r *http.Request, values Values) + func TestHeader(t *testing.T, r *http.Request, header string, want string) + func TestMethod(t *testing.T, r *http.Request, want string) + func TestQueryValues(t *testing.T, r *http.Request, values Values) + type ClientCore struct + BaseURL *url.URL + Client *http.Client + TypetalkToken string + UserAgent string + func (c *ClientCore) Call(ctx context.Context, method string, url string, body interface{}, ...) (*shared.Response, error) + func (c *ClientCore) Delete(ctx context.Context, url string, v interface{}) (*shared.Response, error) + func (c *ClientCore) Do(ctx context.Context, req *http.Request, v interface{}) (*shared.Response, error) + func (c *ClientCore) Get(ctx context.Context, url string, v interface{}) (*shared.Response, error) + func (c *ClientCore) NewMultipartRequest(urlStr string, values map[string]io.Reader) (*http.Request, error) + func (c *ClientCore) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *ClientCore) NewUploadRequest(urlStr string, reader io.Reader, size int64, mediaType string) (*http.Request, error) + func (c *ClientCore) Post(ctx context.Context, url string, body interface{}, v interface{}) (*shared.Response, error) + func (c *ClientCore) Put(ctx context.Context, url string, body interface{}, v interface{}) (*shared.Response, error) + type Values map[string]interface Other modules containing this package github.com/is2ei/go-typetalk github.com/is2ei/go-typetalk/v3