https://github.com/wujunze/http
A simple http client for golang
https://github.com/wujunze/http
curl curl-golang golang http-client
Last synced: 10 months ago
JSON representation
A simple http client for golang
- Host: GitHub
- URL: https://github.com/wujunze/http
- Owner: wujunze
- License: other
- Created: 2019-05-19T06:21:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T07:05:37.000Z (over 6 years ago)
- Last Synced: 2025-01-28T23:49:47.933Z (12 months ago)
- Topics: curl, curl-golang, golang, http-client
- Language: Go
- Homepage: https://github.com/wujunze/http
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http
[](https://travis-ci.org/wujunze/http)
[](https://codecov.io/gh/wujunze/http)
[](https://goreportcard.com/report/github.com/wujunze/http)
[](https://godoc.org/github.com/wujunze/http)
A simple http client for golang
## Usage
### Start using it
Download and install it:
```bash
$ go get github.com/wujunze/http
```
Import it in your code:
```go
import "github.com/wujunze/http"
```
### Example:
```go
package main
import (
"github.com/wujunze/http"
)
func main() {
params := make(map[string]string)
params["name"] = "panda"
curl := Curl{"https://github.com"}
res, err := curl.Get("/", params)
if err != nil {
fmt.Println(err)
}
fmt.Println(string(res))
}
```