From 2f90eabe9c06897cacd3311652b05f95b03d4b99 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Wed, 3 Apr 2024 11:51:39 -0700 Subject: [PATCH 1/2] chore: v2 release prep --- README.md | 20 ++++++++++---------- api/autocomplete.go | 2 +- api/autocomplete_test.go | 2 +- api/client.go | 4 ++-- api/client_test.go | 2 +- api/company.go | 2 +- api/company_test.go | 2 +- api/ip.go | 2 +- api/ip_test.go | 2 +- api/jobtitle.go | 4 ++-- api/jobtitle_test.go | 4 ++-- api/location.go | 2 +- api/location_test.go | 2 +- api/person.go | 2 +- api/person_sandbox_test.go | 2 +- api/person_test.go | 2 +- api/school.go | 2 +- api/school_test.go | 2 +- api/skill.go | 2 +- api/skill_test.go | 4 ++-- go.mod | 2 +- options.go | 4 ++-- pld.go | 2 +- 23 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 446ee2b..924de5c 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@

Official Go client for the People Data Labs API.

- + Repo Status   - + Go 2.0.0   - - Tests Status + + Tests Status

@@ -28,7 +28,7 @@ 1. To use _peopledatalabs-go_ SDK in your project initialize go modules then run: ```bash - go get github.com/peopledatalabs/peopledatalabs-go + go get github.com/peopledatalabs/peopledatalabs-go/v2 ``` 2. Sign up for a [free PDL API key](https://www.peopledatalabs.com/signup). 3. Set your API key as a environment variable. @@ -41,8 +41,8 @@ First, create the PeopleDataLabs client: package main import ( - pdl "github.com/peopledatalabs/peopledatalabs-go" - pdlmodel "github.com/peopledatalabs/peopledatalabs-go/model" + pdl "github.com/peopledatalabs/peopledatalabs-go/v2" + pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) @@ -331,9 +331,9 @@ result, err := client.IP(ctx, params) # To enable sandbox usage, use the following import ( - pdl "github.com/peopledatalabs/peopledatalabs-go" - "github.com/peopledatalabs/peopledatalabs-go/api" - pdlmodel "github.com/peopledatalabs/peopledatalabs-go/model" + pdl "github.com/peopledatalabs/peopledatalabs-go/v2" + "github.com/peopledatalabs/peopledatalabs-go/v2/api" + pdlmodel "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) client := pdl.New(apiKey, api.ClientOptions(func(c *api.Client) { diff --git a/api/autocomplete.go b/api/autocomplete.go index 1c8bbd8..0da7b09 100644 --- a/api/autocomplete.go +++ b/api/autocomplete.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( diff --git a/api/autocomplete_test.go b/api/autocomplete_test.go index e05055d..4bd878d 100644 --- a/api/autocomplete_test.go +++ b/api/autocomplete_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/client.go b/api/client.go index 927e0d8..4815e4f 100644 --- a/api/client.go +++ b/api/client.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/peopledatalabs/peopledatalabs-go/logger" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/logger" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/google/go-querystring/query" ) diff --git a/api/client_test.go b/api/client_test.go index 22f31a7..b6a6c5d 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/company.go b/api/company.go index 9e6aeb9..a279c85 100644 --- a/api/company.go +++ b/api/company.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( diff --git a/api/company_test.go b/api/company_test.go index a4a95da..c533c41 100644 --- a/api/company_test.go +++ b/api/company_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/ip.go b/api/ip.go index 627eaac..368e8c5 100644 --- a/api/ip.go +++ b/api/ip.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( diff --git a/api/ip_test.go b/api/ip_test.go index 64191a8..59deede 100644 --- a/api/ip_test.go +++ b/api/ip_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/jobtitle.go b/api/jobtitle.go index 976ac7d..66c4d44 100644 --- a/api/jobtitle.go +++ b/api/jobtitle.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( @@ -23,4 +23,4 @@ func (a JobTitle) JobTitle(ctx context.Context, params model.JobTitleParams) (mo } var response model.JobTitleResponse return response, a.Client.get(ctx, jobTitlePath, params, &response) -} \ No newline at end of file +} diff --git a/api/jobtitle_test.go b/api/jobtitle_test.go index a360a3d..4012670 100644 --- a/api/jobtitle_test.go +++ b/api/jobtitle_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) @@ -17,7 +17,7 @@ func TestJobTitle(t *testing.T) { // test params := model.JobTitleParams{ - BaseParams: model.BaseParams{Pretty: true}, + BaseParams: model.BaseParams{Pretty: true}, JobTitleBaseParams: model.JobTitleBaseParams{JobTitle: "data scientist"}, } resp, err := auto.JobTitle(context.Background(), params) diff --git a/api/location.go b/api/location.go index b70ae7d..d6d9bd4 100644 --- a/api/location.go +++ b/api/location.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const locationCleanPath = "/location/clean" diff --git a/api/location_test.go b/api/location_test.go index 3c37ef1..b661f64 100644 --- a/api/location_test.go +++ b/api/location_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/person.go b/api/person.go index c86f77b..eca6232 100644 --- a/api/person.go +++ b/api/person.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( diff --git a/api/person_sandbox_test.go b/api/person_sandbox_test.go index 2d4ba6d..ba590fc 100644 --- a/api/person_sandbox_test.go +++ b/api/person_sandbox_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/person_test.go b/api/person_test.go index 18c34c4..bd69439 100644 --- a/api/person_test.go +++ b/api/person_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/school.go b/api/school.go index fa1fade..33fbfc8 100644 --- a/api/school.go +++ b/api/school.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const schoolCleanPath = "/school/clean" diff --git a/api/school_test.go b/api/school_test.go index 6e7866d..d738a9c 100644 --- a/api/school_test.go +++ b/api/school_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) diff --git a/api/skill.go b/api/skill.go index 501a28a..eccadcc 100644 --- a/api/skill.go +++ b/api/skill.go @@ -3,7 +3,7 @@ package api import ( "context" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" ) const ( diff --git a/api/skill_test.go b/api/skill_test.go index 215b070..60083b9 100644 --- a/api/skill_test.go +++ b/api/skill_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/peopledatalabs/peopledatalabs-go/model" + "github.com/peopledatalabs/peopledatalabs-go/v2/model" "github.com/stretchr/testify/assert" ) @@ -17,7 +17,7 @@ func TestSkill(t *testing.T) { // test params := model.SkillParams{ - BaseParams: model.BaseParams{Pretty: true}, + BaseParams: model.BaseParams{Pretty: true}, SkillBaseParams: model.SkillBaseParams{Skill: "python"}, } resp, err := auto.Skill(context.Background(), params) diff --git a/go.mod b/go.mod index 67d138b..26cdcd1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/peopledatalabs/peopledatalabs-go +module github.com/peopledatalabs/peopledatalabs-go/v2 go 1.18 diff --git a/options.go b/options.go index 6203a3b..2e3b7e1 100644 --- a/options.go +++ b/options.go @@ -4,8 +4,8 @@ import ( "net/http" "time" - "github.com/peopledatalabs/peopledatalabs-go/api" - "github.com/peopledatalabs/peopledatalabs-go/logger" + "github.com/peopledatalabs/peopledatalabs-go/v2/api" + "github.com/peopledatalabs/peopledatalabs-go/v2/logger" ) // WithHTTPClient sets a custom HTTP Client diff --git a/pld.go b/pld.go index 06eae20..cafd779 100644 --- a/pld.go +++ b/pld.go @@ -1,7 +1,7 @@ package peopledatalabs_go import ( - "github.com/peopledatalabs/peopledatalabs-go/api" + "github.com/peopledatalabs/peopledatalabs-go/v2/api" ) const Version = "2.0.0" From 073169e3d16b20551a50c793b09da5384a00eb35 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Wed, 3 Apr 2024 11:56:25 -0700 Subject: [PATCH 2/2] revert readme badge changes --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 924de5c..19ea408 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@

Official Go client for the People Data Labs API.

- + Repo Status   - + Go 2.0.0   - - Tests Status + + Tests Status