format

package module
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: OSL-3.0 Imports: 6 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)

Data parsers and formatters

Path Synopsis
crypto JA3 and TLS fingerprint
hls HLS parser
net HTML and HTTP parsers
protobuf Protocol Buffers

Repo

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBinary added in v1.17.6

func IsBinary(buf []byte) bool

mimesniff.spec.whatwg.org#binary-data-byte

func Label added in v1.26.3

func Label[T Number](value T, unit ...string) string

func LabelNumber added in v1.26.3

func LabelNumber[T Number](value T) string

func LabelRate added in v1.26.3

func LabelRate[T Number](value T) string

func LabelSize added in v1.26.3

func LabelSize[T Number](value T) string

func Percent

func Percent[T Number](value, total T) string

Types

type LogLevel added in v1.16.4

type LogLevel int

Use 0 for INFO, 1 for VERBOSE and any other value for QUIET.

func (LogLevel) Dump added in v1.16.4

func (l LogLevel) Dump(req *http.Request) error

type Number

type Number interface {
	float64 | int | int64 | uint64
}

type Progress added in v1.16.3

type Progress struct {
	*http.Response
	// contains filtered or unexported fields
}

func NewProgress added in v1.18.1

func NewProgress(src *http.Response) *Progress

func (*Progress) Read added in v1.16.3

func (p *Progress) Read(buf []byte) (int, error)

Directories

Path Synopsis
cmd
hls
net
TLS and JA3 parsers
TLS and JA3 parsers
HTML and HTTP parsers.
HTML and HTTP parsers.
research

Jump to

Keyboard shortcuts

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