highlight

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package highlight applies syntax highlighting to HTTP body content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(body []byte, contentType string, darkBg bool, prettyJSON bool) string

Highlight applies syntax highlighting to body based on contentType. Returns ANSI-colored string. Falls back to plain text for unknown types.

func IsBinary added in v0.1.5

func IsBinary(body []byte, contentType string) bool

IsBinary reports whether the content is binary based on content-type and body inspection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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