formatter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanLogs added in v0.9.0

func CleanLogs(logs string) string

func FormatTime

func FormatTime(t time.Time) string

func FormatTimeNs

func FormatTimeNs(t int64) string

func FormatTimeNsSinceNow

func FormatTimeNsSinceNow(t int64) string

func PrettyJsonStringAsLines

func PrettyJsonStringAsLines(logline string) []string

func ShortAllocID

func ShortAllocID(allocID string) string

func StripANSI added in v0.2.0

func StripANSI(str string) string

func StripOSCommandSequences added in v0.4.3

func StripOSCommandSequences(str string) string

Types

type Table

type Table struct {
	HeaderRows, ContentRows []string
}

func GetRenderedTableAsString

func GetRenderedTableAsString(columns []string, data [][]string) Table

Jump to

Keyboard shortcuts

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