From ed722f82e4e001bf632f42f17167cf47e037efcd Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 12 Apr 2024 11:57:32 +0200 Subject: [PATCH] bugfix: JSON format, export and marshalling --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {