formatter

package
v0.0.420 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanLogs

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 FormatTimePtr

func FormatTimePtr(pt *time.Time) string

func JsonEncodedTokenArray

func JsonEncodedTokenArray(s string) (string, error)

func PrettyJsonStringAsLines

func PrettyJsonStringAsLines(logline string) []string

func ShortAllocID

func ShortAllocID(allocID string) string

func StripANSI

func StripANSI(str string) string

func StripOSCommandSequences

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