common

package
v0.0.0-...-a1e0d03 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func CheckStringForBoolean

func CheckStringForBoolean(str string) bool

func Contains

func Contains(array []string, toFind string) bool

Contains searches through a array of string to find a single item

func GenerateUUID

func GenerateUUID() string

GenerateUUID creates a unique id

func GetDatabase

func GetDatabase() *gorm.DB

GetDatabase returns the global database variable from this file

func SetDatabase

func SetDatabase(db *gorm.DB)

SetDatabase sets the global database variable in this file

func SetupRouter

func SetupRouter() *gin.Engine

Types

type JSON

type JSON = map[string]interface{}

JSON alias type

Jump to

Keyboard shortcuts

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