prettyprint

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package prettyprint contains a wrapper types for pretty printing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

Duration is a wrapper for humanizing time.Duration

func (Duration) String

func (duration Duration) String() string

type ResponseHeader

type ResponseHeader http.Header

ResponseHeader is a type for pretty printing net/http response headers

func (ResponseHeader) String

func (h ResponseHeader) String() string

String formats headers by outputting headers and values in equal columns, sorted alphabetically by header. Repeated headers are marked with an asterisk.

type Size

type Size float64

Size is wrapper for humanizing byte sizes. Sizes are reported in base-2 equivalents, not base-10, i.e. 1 KB = 1024 bytes.

func (Size) String

func (size Size) String() string

Jump to

Keyboard shortcuts

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