format

package module
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: OSL-3.0 Imports: 1 Imported by: 0

README

Format

Yeah so it sounds like you and me had the same journey here, and uh yeah I'm glad to find someone who's on the other side of it. So uh tell me what did you do?

Uh what do you mean?

Like what do you do?

I mean I hit both shift keys, and I type the letters with my nose.

I know that that's what I've been doing too, but what did you do so you don't have to do that anymore?

No that's what I do.

Joel Haver (2021)

Parsers and formatters for different data types

Path Synopsis
crypto TLS and JA3 parsers
json JSON parser
m3u M3U parser
net HTML and HTTP parsers
protobuf Protocol Buffers

Repo

https://github.com/89z/format

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Number = Symbols{"", " K", " M", " B", " T"}
	Size   = Symbols{" B", " kB", " MB", " GB", " TB"}
	Rate   = Symbols{" B/s", " kB/s", " MB/s", " GB/s", " TB/s"}
)

Functions

func Percent

func Percent(value, total int64) string

godocs.io/github.com/google/pprof/internal/measurement#Percentage

func Trim

func Trim(s string) string

github.com/golang/text/blob/18b340fc/encoding/internal/enctest/enctest.go#L175-L180

Types

type Symbols

type Symbols []string

func (Symbols) LabelFloat

func (s Symbols) LabelFloat(f float64) string

godocs.io/github.com/google/pprof/internal/measurement#Label

func (Symbols) LabelInt

func (s Symbols) LabelInt(i int64) string

godocs.io/github.com/google/pprof/internal/measurement#Label

func (Symbols) LabelUint

func (s Symbols) LabelUint(i uint64) string

godocs.io/github.com/google/pprof/internal/measurement#Label

Directories

Path Synopsis
cmd
net command
proxy command
TLS and JA3 parsers
TLS and JA3 parsers
JSON parser
JSON parser
M3U parser
M3U parser
HTML and HTTP parsers.
HTML and HTTP parsers.
Protocol Buffers
Protocol Buffers

Jump to

Keyboard shortcuts

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