formatter

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

View Source
const ParameterTableLineLength = 4

ParameterTableLineLength the length for each line about parameter table

Variables

This section is empty.

Functions

func FormatBytesToSize

func FormatBytesToSize(bytes int64) string

func FormatPercentString

func FormatPercentString(v1, v2 int64) string

func FormatTime

func FormatTime(t time.Time) string

func PrintParameters

func PrintParameters(title string, parameters []Parameter)

func PrintTable

func PrintTable(title string, header table.Row, rows []table.Row)

Types

type Parameter

type Parameter struct {
	Key   interface{}
	Value interface{}
}

Jump to

Keyboard shortcuts

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