From 7ea7cf044f5a106030fd150345e2b27a3799110b Mon Sep 17 00:00:00 2001 From: Maciej Perlinski Date: Tue, 16 Jan 2024 23:41:07 +0100 Subject: [PATCH] fixing code formatting --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a19fe30..20f5590 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ go get -u github.com/panperla/reamaze-go/reamaze ## Example Usage ### Retrieving Articles + ```go package main @@ -58,18 +59,18 @@ import ( func main() { // Replace these values with your Re:amaze credentials email := "your-email@example.com" - apiToken := "your-api-token" - brand := "your-brand" + apiToken := "your-api-token" + brand := "your-brand" // Initialize Re:amaze client - reamazeClient, err := reamaze.NewClient(email, apiToken, brand) - if err != nil { + reamazeClient, err := reamaze.NewClient(email, apiToken, brand) + if err != nil { log.Println(err) } // Example: Get a list of articles - articles, err := reamazeClient.GetArticles() - if err != nil { + articles, err := reamazeClient.GetArticles() + if err != nil { fmt.Println("Error:", err) return }