Skip to content

Commit

Permalink
Reorganize Codebase (#10)
Browse files Browse the repository at this point in the history
* move jsonapi package to subdirectory

* upgrade workflow install step

* install with go mod download
  • Loading branch information
alehechka authored May 11, 2022
1 parent 0a6c12a commit 8686926
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-go@v2

- name: Install dependencies
run: go get -d -v
run: go mod download

- name: Run unit tests
run: go test ./... --cover
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion include_test.go → jsonapi/include_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http/httptest"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion jsonapi_test.go → jsonapi/jsonapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
)

type SomeRelatedData struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion links_test.go → jsonapi/links_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http/httptest"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pagination_test.go → jsonapi/pagination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http/httptest"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion response_test.go → jsonapi/response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/gin_pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"net/http"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/gin_pagination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/alehechka/go-jsonapi"
"github.com/alehechka/go-jsonapi/jsonapi"
"github.com/alehechka/go-jsonapi/middleware"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
Expand Down

0 comments on commit 8686926

Please sign in to comment.