format

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(timestamp *timestamppb.Timestamp, c clockwork.Clock) string

Age returns the age of the given timestamp in a human-readable format.

func Duration

func Duration(timestamp1, timestamp2 *timestamppb.Timestamp) string

Duration returns the duration between two timestamps in a human-readable format.

func Namespace

func Namespace(resultName string) string

Namespace returns the namespace of the given result name.

func PrintProto

func PrintProto(w io.Writer, m proto.Message, format string) error

PrintProto prints the given proto message to the given writer in the given format. Valid formats are: tab, textproto, json

func Status

func Status(status pb.RecordSummary_Status) string

Status returns the status of the given record summary in a human-readable format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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