pretty

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintLn

func PrintLn(t time.Time, source string, message string)

PrintLn prints a log line with a timestamp and source.

func SinceString

func SinceString(t time.Time) string

SinceString returns a string representation of a time.Duration since the provided time.Time.

Types

type Header []string

type Rows

type Rows [][]interface{}

type Style

type Style int
const (
	StyleDefault Style = iota
	StyleWithBorder
)

type Table

type Table struct {
	Header Header
	Rows   Rows
	Style  Style
}

func (Table) Print

func (t Table) Print()

Jump to

Keyboard shortcuts

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