Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed May 8, 2017
1 parent bd7f83f commit a0b18c5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ go get github.com/imroc/req

Quick Start
=======
`Request = Method + Url [+ Options]`
the "`Options`" can be headers, params, files or body etc
Only url is required, others are optional, like headers, params, files or body etc
``` go
// execute a request
func Do(method, url string, v ...interface{}) (*Req, error)
// wraps Do
func Get(url string, v ...interface{}) (*Req, error)
func Post(url string, v ...interface{}) (*Req, error)
......
```
The struct `Req` hold both request and response infomation.

Examples
=======
Expand Down

0 comments on commit a0b18c5

Please sign in to comment.