commons

package
v0.0.0-...-0ab47bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message interface{}, args ...interface{})

Debug prints debug information

func GetJSONMessage

func GetJSONMessage(msg string) string

GetJSONMessage returns a JSON struct with the message inside

Types

type Config

type Config struct {
	Debug bool
	SQL   sql
	API   api
}

Config struct holds all the configurations

func GetConfiguration

func GetConfiguration() Config

GetConfiguration returns the configuration object

Jump to

Keyboard shortcuts

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