From 6c5bc5cd309823aee4b68694cfdf01ecc615a069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=92=D0=BE?= =?UTF-8?q?=D0=BB=D0=B5=D0=B3=D0=BE=D0=B2?= Date: Mon, 19 Sep 2022 15:25:50 +0300 Subject: [PATCH] add changelog, update readme --- CHANGELOG.md | 7 +++++++ README.md | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..544e2c9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# CHANGELOG + +## [v0.0.1] - 2022-09-20 + +- Add semver version `v0.0.1` (see semver.org) +- Add `NewWithOptions(url string, opts ...Option)` for custom client settings +- Rollback `go.mod` package name to `github.com/badkaktus/gorocket` \ No newline at end of file diff --git a/README.md b/README.md index bca6006..9c0212f 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,16 @@ if err != nil { fmt.Printf("I'm %s", lg.Data.Me.Username) ``` +or + +```go +client := gorocket.NewWithOptions("https://your-rocket-chat.com", + gorocket.WithUserID("my-user-id"), + gorocket.WithToken("my-bot-token"), + gorocket.WithTimeout(1 * time.Second), +) +``` + ## Manage user ```go str := gorocket.NewUser{