Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package format provides output formatting utilities for the CLI.

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