router

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.0.4

func Add(a int, b int) int

Global Functions

func FormatAsDate added in v1.0.4

func FormatAsDate(t time.Time) string

func GetEnvironment added in v1.0.6

func GetEnvironment(config string, environment string) (models.Environment, error)

func LoadAPI added in v1.0.6

func LoadAPI(router *gin.Engine)

func LoadRoutes

func LoadRoutes(router *gin.Engine)

func MultAndAdd added in v1.0.4

func MultAndAdd(page int, mult int, add int) int

func Multiply added in v1.0.4

func Multiply(a int, b int) int

func SetGlobalFuncs added in v1.0.4

func SetGlobalFuncs(router *gin.Engine)

func SetupRouter

func SetupRouter(env models.Environment, gormDebug bool, prod bool) (*gin.Engine, error)

func Subtract added in v1.0.4

func Subtract(a int, b int) int

func Test

func Test(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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