utils

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HoursInDay      = 24
	MinutesInHour   = 60
	SecondsInMinute = 60
)

Variables

This section is empty.

Functions

func CheckExcludedPaths

func CheckExcludedPaths(path string) bool

Check the wanted path is not in the do not log list.

func EpochToHumanReadable

func EpochToHumanReadable(epoch int) string

func EpochToTimeAgoHappened

func EpochToTimeAgoHappened(epoch int) string

func PrettifyJSON

func PrettifyJSON(rawString string) string

func ResponseStatusColor added in v3.0.3

func ResponseStatusColor(responseStatus interface{}) string

nolint:gocyclo // simple function returning css class

Types

This section is empty.

Jump to

Keyboard shortcuts

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