util

package
v0.0.0-...-d29d52d Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexDump

func HexDump(buffer []byte, annotations []Annotation, writer io.Writer)

HexDump : Returns hexdump of buffer according to annotations, via writer

func HexDumpFromIterator

func HexDumpFromIterator(buffer []byte, annotationsIterator IAnnotationsIterator, writer io.Writer)

HexDumpFromIterator : Returns hexdump of buffer according to annotationsIterator, via writer

Types

type Annotation

type Annotation struct {
	Name string
	Size int
}

Annotation : Denotes a chunk of data to be dumped

type IAnnotationsGenerator

type IAnnotationsGenerator interface {
	GenerateAnnotations() []Annotation
}

IAnnotationsGenerator : Interface to implement by types to use HexDump

type IAnnotationsIterator

type IAnnotationsIterator interface {
	Next() (Annotation, bool)
}

IAnnotationsIterator : Interface to implement by types to use HexDumpFromIterator

Directories

Path Synopsis
Package file Filesystem related utilities
Package file Filesystem related utilities
Package httphelper HTTP Error Response Helpers
Package httphelper HTTP Error Response Helpers
Package utc provides helper function to get UTC time
Package utc provides helper function to get UTC time

Jump to

Keyboard shortcuts

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