diff --git a/main.go b/main.go index f60ce55..6370141 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ import ( ) type Response struct { - success bool + Success bool `json:"success"` } type Endpoint string @@ -151,7 +151,7 @@ func SendRequest(client *resty.Client, url string, ins []interface{}) { } // Print response - log.Printf("Success: %t\n", data.success) + log.Printf("Success: %t\n", data.Success) } func main() {