responsehighlighter

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 10 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStatusCodeSnippet

func CreateStatusCodeSnippet(response string, statusCode int) string

func HasBinaryContent

func HasBinaryContent(input string) bool

func Highlight

func Highlight(operatorResult *operators.Result, response string, noColor, hexDump bool) string

func IsASCII

func IsASCII(input string) bool

IsASCII tests whether a string consists only of ASCII characters or not

func IsASCIIPrintable

func IsASCIIPrintable(input rune) bool

Types

type HighlightableHexDump

type HighlightableHexDump struct {
	// contains filtered or unexported fields
}

func NewHighlightableHexDump

func NewHighlightableHexDump(rowSize int) HighlightableHexDump

func (HighlightableHexDump) String

func (hexDump HighlightableHexDump) String() string

Jump to

Keyboard shortcuts

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