utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logrus.New()

Functions

func Round

func Round(f float64) int

Round rounds the float to the nearest int

func TimeAgo

func TimeAgo(passedTime time.Time) string

TimeAgo returns the rounded form of amount of time elapsed between now and the passed time

Types

type LogEntry

type LogEntry struct {
	Level string
	Msg   string
	Time  time.Time
}

{"level":"error","msg":"Test","time":"2016-04-10T12:05:30-04:00"}

func ParseLogFile

func ParseLogFile() []LogEntry

Jump to

Keyboard shortcuts

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