Zirael is HTTP Client that wrap your request with AMX authorization header
go get -u github.com/teampook/zirael
import "github.com/teampook/zirael"
client := zirael.NewClient(
"YOUR_API_KEY",
"YOUR_API_ID",
"YOUR_NONCE", zirael.WithHTTPTimeout(10 * time.Second))
request, err := client.Get("https://awsome.com", nil)
if err != nil {
panic(err)
}
fmt.Println(request)
body, err := ioutil.ReadAll(request.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
Inspiration from Heimdal An enhanced HTTP client for Go by Gojek
Authors: Arif Rakhman -- [https://github.com/arieefrachman]