format

package module
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: OSL-3.0 Imports: 10 Imported by: 4

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

Topics

  • HLS
  • HTTP
  • JA3
  • JSON
  • ProtoBuf
  • TLS
  • XML

Repo

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[T any](value T, elem ...string) error

func IsBinary

func IsBinary(buf []byte) bool

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

func Label

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

func LabelNumber

func LabelNumber[T Number](value T) string

func LabelRate

func LabelRate[T Number](value T) string

func LabelSize

func LabelSize[T Number](value T) string

func Open

func Open[T any](elem ...string) (*T, error)

Types

type LogLevel

type LogLevel int

func (LogLevel) Dump

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

type Number

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

type Progress

type Progress struct {
	io.Writer
	// contains filtered or unexported fields
}

func ProgressBytes

func ProgressBytes(dst io.Writer, bytes int64) *Progress

func ProgressChunks

func ProgressChunks(dst io.Writer, chunks int) *Progress

func (*Progress) AddChunk

func (p *Progress) AddChunk(bytes int64)

func (Progress) String

func (p Progress) String() string

func (*Progress) Write

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

Directories

Path Synopsis
cmd
net
TLS and JA3 parsers
TLS and JA3 parsers

Jump to

Keyboard shortcuts

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