From 509b548264132356d2ce56a4c8631e840028d18f Mon Sep 17 00:00:00 2001 From: Lucas Josino Date: Fri, 19 Jul 2024 16:55:00 -0300 Subject: [PATCH] Update v1.0.1 (#2) ### Fixes - Fix go module structure *Bump version to 1.0.1* --- .github/workflows/release.yml | 2 +- .github/workflows/testing.yml | 2 +- README.md | 10 +++++----- {examples => _examples}/create.go | 2 +- {examples => _examples}/list.go | 2 +- {pkg/hawapi => hawapi}/actor.go | 0 {pkg/hawapi => hawapi}/character.go | 0 {pkg/hawapi => hawapi}/episode.go | 0 {pkg/hawapi => hawapi}/error.go | 0 {pkg/hawapi => hawapi}/game.go | 0 {pkg/hawapi => hawapi}/hawapi.go | 0 {pkg/hawapi => hawapi}/info.go | 0 {pkg/hawapi => hawapi}/location.go | 0 {pkg/hawapi => hawapi}/logger.go | 0 {pkg/hawapi => hawapi}/overview.go | 0 {pkg/hawapi => hawapi}/pageable.go | 0 {pkg/hawapi => hawapi}/query_options.go | 0 {pkg/hawapi => hawapi}/response.go | 0 {pkg/hawapi => hawapi}/season.go | 0 {pkg/hawapi => hawapi}/service.go | 0 {pkg/hawapi => hawapi}/service_test.go | 0 {pkg/hawapi => hawapi}/soundtrack.go | 0 22 files changed, 9 insertions(+), 9 deletions(-) rename {examples => _examples}/create.go (90%) rename {examples => _examples}/list.go (92%) rename {pkg/hawapi => hawapi}/actor.go (100%) rename {pkg/hawapi => hawapi}/character.go (100%) rename {pkg/hawapi => hawapi}/episode.go (100%) rename {pkg/hawapi => hawapi}/error.go (100%) rename {pkg/hawapi => hawapi}/game.go (100%) rename {pkg/hawapi => hawapi}/hawapi.go (100%) rename {pkg/hawapi => hawapi}/info.go (100%) rename {pkg/hawapi => hawapi}/location.go (100%) rename {pkg/hawapi => hawapi}/logger.go (100%) rename {pkg/hawapi => hawapi}/overview.go (100%) rename {pkg/hawapi => hawapi}/pageable.go (100%) rename {pkg/hawapi => hawapi}/query_options.go (100%) rename {pkg/hawapi => hawapi}/response.go (100%) rename {pkg/hawapi => hawapi}/season.go (100%) rename {pkg/hawapi => hawapi}/service.go (100%) rename {pkg/hawapi => hawapi}/service_test.go (100%) rename {pkg/hawapi => hawapi}/soundtrack.go (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3513803..7847ffc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: run: go mod tidy - name: Testing - run: go test -v ./pkg/... + run: go test -v ./... - name: Publish to pkg.go.dev run: | diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index e624fcd..d1f622a 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -25,4 +25,4 @@ jobs: run: go mod tidy - name: Testing - run: go test -v ./pkg/... \ No newline at end of file + run: go test -v ./... \ No newline at end of file diff --git a/README.md b/README.md index e6211e3..9c3c506 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ go get github.com/HawAPI/go-sdk@latest ## Usage -- [See examples](./examples) +- [See examples](./_examples) ### Init client @@ -31,7 +31,7 @@ package main import ( "fmt" - "github.com/HawAPI/go-sdk" + "github.com/HawAPI/go-sdk/hawapi" ) func main() { @@ -68,7 +68,7 @@ package main import ( "fmt" - "github.com/HawAPI/go-sdk" + "github.com/HawAPI/go-sdk/hawapi" ) func main() { @@ -85,7 +85,7 @@ func main() { ### Error handling -- Check out the [hawapi.ErrorResponse](./pkg/hawapi/error.go) +- Check out the [hawapi.ErrorResponse](hawapi/error.go) ```go package main @@ -93,7 +93,7 @@ package main import ( "fmt" - "github.com/HawAPI/go-sdk" + "github.com/HawAPI/go-sdk/hawapi" "github.com/google/uuid" ) diff --git a/examples/create.go b/_examples/create.go similarity index 90% rename from examples/create.go rename to _examples/create.go index 51b9b4a..4a209d8 100644 --- a/examples/create.go +++ b/_examples/create.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/HawAPI/go-sdk/pkg/hawapi" + "github.com/HawAPI/go-sdk/hawapi" ) func main() { diff --git a/examples/list.go b/_examples/list.go similarity index 92% rename from examples/list.go rename to _examples/list.go index 3fa788a..2c5bb0f 100644 --- a/examples/list.go +++ b/_examples/list.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/HawAPI/go-sdk/pkg/hawapi" + "github.com/HawAPI/go-sdk/hawapi" ) func main() { diff --git a/pkg/hawapi/actor.go b/hawapi/actor.go similarity index 100% rename from pkg/hawapi/actor.go rename to hawapi/actor.go diff --git a/pkg/hawapi/character.go b/hawapi/character.go similarity index 100% rename from pkg/hawapi/character.go rename to hawapi/character.go diff --git a/pkg/hawapi/episode.go b/hawapi/episode.go similarity index 100% rename from pkg/hawapi/episode.go rename to hawapi/episode.go diff --git a/pkg/hawapi/error.go b/hawapi/error.go similarity index 100% rename from pkg/hawapi/error.go rename to hawapi/error.go diff --git a/pkg/hawapi/game.go b/hawapi/game.go similarity index 100% rename from pkg/hawapi/game.go rename to hawapi/game.go diff --git a/pkg/hawapi/hawapi.go b/hawapi/hawapi.go similarity index 100% rename from pkg/hawapi/hawapi.go rename to hawapi/hawapi.go diff --git a/pkg/hawapi/info.go b/hawapi/info.go similarity index 100% rename from pkg/hawapi/info.go rename to hawapi/info.go diff --git a/pkg/hawapi/location.go b/hawapi/location.go similarity index 100% rename from pkg/hawapi/location.go rename to hawapi/location.go diff --git a/pkg/hawapi/logger.go b/hawapi/logger.go similarity index 100% rename from pkg/hawapi/logger.go rename to hawapi/logger.go diff --git a/pkg/hawapi/overview.go b/hawapi/overview.go similarity index 100% rename from pkg/hawapi/overview.go rename to hawapi/overview.go diff --git a/pkg/hawapi/pageable.go b/hawapi/pageable.go similarity index 100% rename from pkg/hawapi/pageable.go rename to hawapi/pageable.go diff --git a/pkg/hawapi/query_options.go b/hawapi/query_options.go similarity index 100% rename from pkg/hawapi/query_options.go rename to hawapi/query_options.go diff --git a/pkg/hawapi/response.go b/hawapi/response.go similarity index 100% rename from pkg/hawapi/response.go rename to hawapi/response.go diff --git a/pkg/hawapi/season.go b/hawapi/season.go similarity index 100% rename from pkg/hawapi/season.go rename to hawapi/season.go diff --git a/pkg/hawapi/service.go b/hawapi/service.go similarity index 100% rename from pkg/hawapi/service.go rename to hawapi/service.go diff --git a/pkg/hawapi/service_test.go b/hawapi/service_test.go similarity index 100% rename from pkg/hawapi/service_test.go rename to hawapi/service_test.go diff --git a/pkg/hawapi/soundtrack.go b/hawapi/soundtrack.go similarity index 100% rename from pkg/hawapi/soundtrack.go rename to hawapi/soundtrack.go