ginext

package
v1.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTrans

func RegisterTrans(language string) error

RegisterTrans 定义翻译的方法

func SetMode

func SetMode(debug bool)

func Translate

func Translate(err error) (errMsg string)

Translate 翻译错误信息

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func Viper

func Viper(settings server.Setting) *App

func (*App) Engine

func (app *App) Engine() *gin.Engine

Engine 返回引擎

func (*App) Run

func (app *App) Run()

Run 启动

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL