prettyfmt

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(bytes int64) string

Bytes returns human friendly string representation of the number of bytes.

func CollapseJSON

func CollapseJSON(bytes []byte) []byte

CollapseJSON takes as input the output of json.MarshalIndent function and puts all lists to the same line. It was not intended to solve this problem in general case and works on a very limited set of inputs. Specifically to make the output of the `GET /topics/<>/consumers` API method look compact.

Types

This section is empty.

Jump to

Keyboard shortcuts

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