Skip to content

Commit 1c760c8

Browse files
committed
chore: change app name
1 parent 2a21d33 commit 1c760c8

File tree

10 files changed

+30
-24
lines changed

10 files changed

+30
-24
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ router.Use(middleware.CORSMiddleware())
153153

154154
### Examples
155155

156-
- More Example [gin-boilerplate-examples](https://github.com/akmamun/gin-boilerplate-examples)
156+
- More Example [saas-examples](https://github.com/akmamun/saas-examples)
157157

158158
### Let's Build an API
159159

@@ -184,8 +184,8 @@ func (e *Example) TableName() string {
184184
package migrations
185185

186186
import (
187-
"gin-boilerplate/infra/database"
188-
"gin-boilerplate/models"
187+
"saas/infra/database"
188+
"saas/models"
189189
)
190190

191191
// Migrate Add list of model add for migrations
@@ -208,8 +208,8 @@ func Migrate() {
208208
package controllers
209209

210210
import (
211-
"gin-boilerplate/models"
212-
"gin-boilerplate/repository"
211+
"saas/models"
212+
"saas/repository"
213213
"github.com/gin-gonic/gin"
214214
"net/http"
215215
)
@@ -233,7 +233,7 @@ func Create(ctx *gin.Context) {
233233
package routers
234234

235235
import (
236-
"gin-boilerplate/controllers"
236+
"saas/controllers"
237237
"github.com/gin-gonic/gin"
238238
"net/http"
239239
)

config/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package config
22

33
import (
4-
"gin-boilerplate/infra/logger"
4+
"saas/infra/logger"
5+
56
"github.com/spf13/viper"
67
)
78

config/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package config
22

33
import (
44
"fmt"
5+
56
"github.com/spf13/viper"
67
)
78

controllers/example_controller.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package controllers
22

33
import (
4-
"gin-boilerplate/models"
5-
"gin-boilerplate/repository"
6-
"github.com/gin-gonic/gin"
74
"net/http"
5+
"saas/models"
6+
"saas/repository"
7+
8+
"github.com/gin-gonic/gin"
89
)
910

1011
func GetData(ctx *gin.Context) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module gin-boilerplate
1+
module saas
22

33
go 1.17
44

main.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package main
22

33
import (
4-
"gin-boilerplate/config"
5-
"gin-boilerplate/infra/database"
6-
"gin-boilerplate/infra/logger"
7-
"gin-boilerplate/migrations"
8-
"gin-boilerplate/routers"
9-
"github.com/spf13/viper"
4+
"saas/config"
5+
"saas/infra/database"
6+
"saas/infra/logger"
7+
"saas/migrations"
8+
"saas/routers"
109
"time"
10+
11+
"github.com/spf13/viper"
1112
)
1213

1314
func main() {

migrations/migration.go

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

33
import (
4-
"gin-boilerplate/infra/database"
5-
"gin-boilerplate/models"
4+
"saas/infra/database"
5+
"saas/models"
66
)
77

88
// Migrate Add list of model add for migrations

repository/sql_repo.go

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

33
import (
4-
"gin-boilerplate/infra/database"
5-
"gin-boilerplate/infra/logger"
4+
"saas/infra/database"
5+
"saas/infra/logger"
66
)
77

88
func Save(model interface{}) interface{} {

routers/middleware/cors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package middleware
22

33
import (
4-
"github.com/gin-gonic/gin"
54
"log"
5+
6+
"github.com/gin-gonic/gin"
67
)
78

89
func CORSMiddleware() gin.HandlerFunc {

routers/router.go

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

33
import (
4-
"gin-boilerplate/routers/middleware"
4+
"saas/routers/middleware"
5+
56
"github.com/gin-gonic/gin"
67
"github.com/spf13/viper"
78
)
@@ -22,7 +23,7 @@ func SetupRoute() *gin.Engine {
2223
router.Use(gin.Recovery())
2324
router.Use(middleware.CORSMiddleware())
2425

25-
RegisterRoutes(router) //routes register
26+
RegisterRoutes(router) // routes register
2627

2728
return router
2829
}

0 commit comments

Comments
 (0)