From e5c4be1d23456cd91324ff33786f70cf307d55bc Mon Sep 17 00:00:00 2001 From: Nazarii-4chain Date: Thu, 4 Jan 2024 14:32:29 +0200 Subject: [PATCH] Changed Readme --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index edfd3689..fad5db9a 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,24 @@ Read more about this Go project's [code standards](.github/CODE_STANDARDS.md).
## Usage + +``` +func main() { + client, err := bux.NewClient( + context.Background(), // Set context + ) + if err != nil { + log.Fatalln("error: " + err.Error()) + } + + defer func() { + _ = client.Close(context.Background()) + }() + + log.Println("client loaded!", client.UserAgent()) +} +``` + Checkout all the [examples](examples)!