From eeacecdef644c92b57dd48db61d5f774aeedea77 Mon Sep 17 00:00:00 2001 From: Jin Huang Date: Tue, 6 Feb 2024 17:00:06 +1100 Subject: [PATCH] Add version number to User Agent Updated Readme with correct mocking library --- README.md | 5 +++-- zendesk/zendesk.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index da324819..1e8d332a 100644 --- a/README.md +++ b/README.md @@ -50,14 +50,15 @@ func main() { ## Want to mock API? -go-zendesk has a [mock package](https://pkg.go.dev/github.com/nukosuke/go-zendesk/zendesk/mock) generated by [golang/mock](https://github.com/golang/mock). +go-zendesk has a [mock package](https://pkg.go.dev/github.com/nukosuke/go-zendesk/zendesk/mock) generated by [uber-go/mock](https://github.com/uber-go/mock). You can simulate the response from Zendesk API with it. ## To regenerate the mock client `go generate ./...` -## Zendesk [OBP(Offset Based Pagination) to CBP(Cursor Based Pagination) migration guide](CBPMigration.md) +## Zendesk OBP(Offset Based Pagination) to CBP(Cursor Based Pagination) migration guide +[CBPMigration](CBPMigration.md) ## Maintainer diff --git a/zendesk/zendesk.go b/zendesk/zendesk.go index 2892adfb..d829ef75 100644 --- a/zendesk/zendesk.go +++ b/zendesk/zendesk.go @@ -18,7 +18,7 @@ const ( ) var defaultHeaders = map[string]string{ - "User-Agent": "nukosuke/go-zendesk", + "User-Agent": "nukosuke/go-zendesk/0.18.0", "Content-Type": "application/json", }