formatter

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 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 JsonEncodedTokenArray added in v0.2.0

func JsonEncodedTokenArray(s string) (string, error)

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