Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gentleman
✓ gopkg.in/h2non/gentleman.v2
Create an HTTP GET request
package main
import (
"fmt"
"gopkg.in/h2non/gentleman.v2"
)
func main() {
cli := gentleman.New()
cli.URL("https://api.example.com")
req := cli.Request()
req.SetHeader("Accept", "application/json")
res, _ := req.Send()
fmt.Println(res.StatusCode)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.0.5latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.