Skip to content

Conversation

@qiankunli
Copy link

@qiankunli qiankunli commented Jul 3, 2023

usage example

c := NewHttpClient()
res, err := c.Get("http://httpbin.org/user-agent")

if err != nil {
  t.Error(err)
}
type Result struct {
   UserAgent string `json:"user-agent"`
}
result := &Result{}
err = res.ToJson(result)
if err != nil {
  t.Error(err)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants