escape

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InternalEscapeBytes

func InternalEscapeBytes(b []byte, startLoc int, breakNewLines, strip bool) (res []byte)

InternalEscapeBytes escapes redaction markers in the provided buf starting at the location startLoc. The bytes before startLoc are considered safe (already escaped).

If breakNewLines is set, a closing redaction marker is placed before sequences of one or more newline characters, and an open redaction marker is placed afterwards.

If strip is set, final newlines and spaces are trimmed from the output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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