Skip to content

Commit e03eb99

Browse files
committed
Change go mod to public
1 parent a2a37a8 commit e03eb99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+257
-237
lines changed

cmd/server/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package main
22

33
import (
4-
"golang-rest-api-template/config"
5-
_ "golang-rest-api-template/internal/handlers/category/model"
6-
"golang-rest-api-template/package/logger"
4+
"github.com/MitulShah1/golang-rest-api-template/package/logger"
5+
6+
_ "github.com/MitulShah1/golang-rest-api-template/internal/handlers/category/model"
7+
8+
"github.com/MitulShah1/golang-rest-api-template/config"
79
)
810

911
// @title REST API Template Example

config/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ package config
22

33
import (
44
"context"
5-
"golang-rest-api-template/internal/handlers"
6-
"golang-rest-api-template/package/database"
7-
"golang-rest-api-template/package/logger"
85
"net/http"
96
"os"
107
"os/signal"
118
"syscall"
129
"time"
1310

11+
"github.com/MitulShah1/golang-rest-api-template/internal/handlers"
12+
"github.com/MitulShah1/golang-rest-api-template/package/database"
13+
"github.com/MitulShah1/golang-rest-api-template/package/logger"
14+
1415
"github.com/joho/godotenv"
1516
)
1617

docs/docs.go

Lines changed: 47 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/swagger.json

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

docs/swagger.yaml

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module golang-rest-api-template
1+
module github.com/MitulShah1/golang-rest-api-template
22

33
go 1.21.0
44

internal/handlers/category/api.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package category
22

33
import (
44
"encoding/json"
5-
"golang-rest-api-template/internal/handlers/product/model"
6-
"golang-rest-api-template/internal/response"
7-
"golang-rest-api-template/internal/services/category"
8-
"golang-rest-api-template/package/logger"
95
"net/http"
106

7+
"github.com/MitulShah1/golang-rest-api-template/internal/handlers/product/model"
8+
"github.com/MitulShah1/golang-rest-api-template/internal/response"
9+
"github.com/MitulShah1/golang-rest-api-template/internal/services/category"
10+
"github.com/MitulShah1/golang-rest-api-template/package/logger"
11+
1112
"github.com/gorilla/mux"
1213
)
1314

internal/handlers/category/create.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package category
22

33
import (
44
"encoding/json"
5-
"golang-rest-api-template/internal/handlers/category/model"
6-
"golang-rest-api-template/internal/response"
7-
"golang-rest-api-template/package/validation"
85
"io"
96
"net/http"
7+
8+
"github.com/MitulShah1/golang-rest-api-template/internal/handlers/category/model"
9+
"github.com/MitulShah1/golang-rest-api-template/internal/response"
10+
"github.com/MitulShah1/golang-rest-api-template/package/validation"
1011
)
1112

1213
// Category godoc

internal/handlers/category/create_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"net/http/httptest"
1010
"testing"
1111

12-
"golang-rest-api-template/internal/handlers/category/model"
13-
"golang-rest-api-template/internal/services/category/mocks"
14-
"golang-rest-api-template/package/logger"
12+
"github.com/MitulShah1/golang-rest-api-template/internal/handlers/category/model"
13+
"github.com/MitulShah1/golang-rest-api-template/internal/services/category/mocks"
14+
"github.com/MitulShah1/golang-rest-api-template/package/logger"
1515

1616
"github.com/stretchr/testify/assert"
1717
)

internal/handlers/category/delete.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package category
22

33
import (
4-
"golang-rest-api-template/internal/handlers/category/model"
5-
"golang-rest-api-template/internal/response"
64
"net/http"
75
"strconv"
86

7+
"github.com/MitulShah1/golang-rest-api-template/internal/handlers/category/model"
8+
"github.com/MitulShah1/golang-rest-api-template/internal/response"
9+
910
"github.com/gorilla/mux"
1011
)
1112

0 commit comments

Comments
 (0)