debug

package
v0.0.1-demo Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hexdump

func Hexdump(data []byte, prefix string)

Hexdump is a helper function that prints a hexdump of the given data.

Types

type Logrws

type Logrws[T any] struct {
	// contains filtered or unexported fields
}

Logrws is a wrapper around a ReadWriteSeeker that logs all reads and writes.

func NewLogrws

func NewLogrws[T any](rws T, prefix string) *Logrws[T]

func (*Logrws[T]) Close

func (l *Logrws[T]) Close() error

func (*Logrws[T]) Read

func (l *Logrws[T]) Read(p []byte) (n int, err error)

func (*Logrws[T]) Seek

func (l *Logrws[T]) Seek(offset int64, whence int) (int64, error)

func (*Logrws[T]) Write

func (l *Logrws[T]) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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