From ef6a05cd90b8d1c2bac887605d3b915e6a7ca490 Mon Sep 17 00:00:00 2001 From: Jonathan Thurman Date: Mon, 4 Nov 2019 11:47:14 -0800 Subject: [PATCH] move version out to a file, prep for next release --- README.md | 2 +- api/client.go | 3 --- api/version.go | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 api/version.go diff --git a/README.md b/README.md index 55ef9770..74501339 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ make test ### Releasing -When cutting a new release, remember to update the `Version` in [api/client.go](api/client.go) to match the new tag. +When cutting a new release, remember to update the `Version` in [api/version.go](api/version.go) to match the new tag. ## License [Apache-2.0](LICENSE) diff --git a/api/client.go b/api/client.go index c36ab125..69ec3e7e 100644 --- a/api/client.go +++ b/api/client.go @@ -10,9 +10,6 @@ import ( resty "github.com/go-resty/resty/v2" ) -// Version of this library -const Version string = "4.5.0" - // Client represents the client state for the API. type Client struct { RestyClient *resty.Client diff --git a/api/version.go b/api/version.go new file mode 100644 index 00000000..d422d7cd --- /dev/null +++ b/api/version.go @@ -0,0 +1,4 @@ +package api + +// Version of this library +const Version string = "4.6.0"