package main
import (
"fmt"
"github.com/gominima/go-requests"
)
func main() {
resp, err := goquests.Get(goquests.Request{
URL: "https://random-data-api.com/api/users/random_user",
Data: make(map[string]interface{}),
Headers: make(map[string]string),
})
if err != nil {
panic(err)
}
fmt.Print(resp.Body)
}
}
Go requests is made for making data fetch wat easier and fun to use, it uses all standard go packages without any other dependency, also is pretty fast and reliable .
If you wanna help grow this project or say a thank you!
- Give minima a GitHub star
- Fork requests and Contribute
- Join our Discord community