utils

package
v0.0.0-...-08d4403 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogInfo  *log.Logger
	LogError *log.Logger
	LogHTTP  *log.Logger
)

Setting up different types of loggers for the application.

Functions

func InitLogging

func InitLogging(environment string)

InitLogging initializes logging for the application.

func RespondWithJSON

func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})

RespondWithJSON utitlity function to convert HTTP response data to JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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