project: rename project

master
fbonhomm 2019-09-15 16:43:13 +02:00
parent 8d4829aa54
commit af8d6c78cc
15 changed files with 29 additions and 29 deletions

View File

@ -27,7 +27,7 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/fbonhomm/LZSS/source
local-prefixes: github.com/fbonhomm/api-go-example/source
gocyclo:
min-complexity: 10
maligned:

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/fbonhomm/api-go
module github.com/fbonhomm/api-go-example
go 1.12

View File

@ -11,8 +11,8 @@ import (
"github.com/joho/godotenv"
"github.com/fbonhomm/api-go/source/routers"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/routers"
"github.com/fbonhomm/api-go-example/source/services"
)
// init

View File

@ -11,9 +11,9 @@ import (
"github.com/gin-gonic/gin"
"github.com/fbonhomm/api-go/source/libs"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/libs"
"github.com/fbonhomm/api-go-example/source/models"
"github.com/fbonhomm/api-go-example/source/services"
)
// AuthLogin

View File

@ -11,8 +11,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/models"
"github.com/fbonhomm/api-go-example/source/services"
)
// UserCreate

View File

@ -12,8 +12,8 @@ import (
"github.com/dgrijalva/jwt-go"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/models"
"github.com/fbonhomm/api-go-example/source/services"
)
// GenerateAccessToken

View File

@ -12,8 +12,8 @@ import (
"github.com/dgrijalva/jwt-go"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/models"
"github.com/fbonhomm/api-go-example/source/services"
)
// GenerateRefreshToken

View File

@ -13,8 +13,8 @@ import (
"github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
"github.com/fbonhomm/api-go/source/libs"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/libs"
"github.com/fbonhomm/api-go-example/source/services"
)
func Auth(c *gin.Context) {

View File

@ -9,9 +9,9 @@ package routers
import (
"github.com/gin-gonic/gin"
"github.com/fbonhomm/api-go/source/controllers"
"github.com/fbonhomm/api-go/source/middlewares"
"github.com/fbonhomm/api-go/source/validators"
"github.com/fbonhomm/api-go-example/source/controllers"
"github.com/fbonhomm/api-go-example/source/middlewares"
"github.com/fbonhomm/api-go-example/source/validators"
)
// main

View File

@ -9,9 +9,9 @@ package routers
import (
"github.com/gin-gonic/gin"
"github.com/fbonhomm/api-go/source/controllers"
"github.com/fbonhomm/api-go/source/middlewares"
"github.com/fbonhomm/api-go/source/validators"
"github.com/fbonhomm/api-go-example/source/controllers"
"github.com/fbonhomm/api-go-example/source/middlewares"
"github.com/fbonhomm/api-go-example/source/validators"
)
// main

View File

@ -15,7 +15,7 @@ import (
// initialize dialects
_ "github.com/jinzhu/gorm/dialects/postgres"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go-example/source/models"
)
var Db *gorm.DB

View File

@ -15,8 +15,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/joho/godotenv"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go/test/fixture"
"github.com/fbonhomm/api-go-example/source/services"
"github.com/fbonhomm/api-go-example/test/fixture"
)
type Token struct {

View File

@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/fbonhomm/api-go/test/fixture"
"github.com/fbonhomm/api-go-example/test/fixture"
)
// TestGetId

View File

@ -14,9 +14,9 @@ import (
"net/url"
"strings"
"github.com/fbonhomm/api-go/source/models"
"github.com/fbonhomm/api-go/source/routers"
"github.com/fbonhomm/api-go/source/services"
"github.com/fbonhomm/api-go-example/source/models"
"github.com/fbonhomm/api-go-example/source/routers"
"github.com/fbonhomm/api-go-example/source/services"
)
// RequestApiJson

View File

@ -15,7 +15,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"github.com/fbonhomm/api-go/source/validators"
"github.com/fbonhomm/api-go-example/source/validators"
)
// TestShouldSuccessValidatorUserCreate