escape

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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