Skip to content

Commit

Permalink
add changelog, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Алексей Волегов committed Sep 19, 2022
1 parent 84215f0 commit 6c5bc5c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6c5bc5c

Please sign in to comment.