add i18n
This commit is contained in:
13
internal/appcontext/main.go
Normal file
13
internal/appcontext/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package appcontext
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type AppContext struct {
|
||||
C *gin.Context
|
||||
Db *gorm.DB
|
||||
I18n *i18n.Bundle
|
||||
}
|
||||
Reference in New Issue
Block a user