display

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Overview

Misc. helpers for displaying information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketInfo

func BucketInfo(
	tsValue *monitoring.TypedValue,
) (bucketType string, buckets interface{})

func DumpJson

func DumpJson(indent string, ix interface{})

func DurationString

func DurationString(d time.Duration) string

func Join

func Join(sep string, strs ...string) string

func WrapText

func WrapText(line string) string

WrapText() returns the passed-in string but with any lines longer than 74 bytes wrapped by replacing a space with a newline followed by 5 spaces (so they look nice when indented 4 spaces).

Types

This section is empty.

Jump to

Keyboard shortcuts

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