encoding

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeText

func DecodeText(s string) []byte

DecodeText decodes a text string with \xHH, \n, \r, \t escapes back to bytes.

func EncodeText

func EncodeText(data []byte) string

EncodeText encodes a byte slice as text with \xHH escapes for non-printable bytes.

func HexDecode

func HexDecode(s string) ([]byte, error)

HexDecode decodes a hex string to bytes. Returns an error for malformed hex.

Types

This section is empty.

Jump to

Keyboard shortcuts

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