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{