replacer

package
v0.0.3-openssl Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// EmptyValue is the default empty value.
	EmptyValue = "-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Replacer

type Replacer struct{}

Replacer replaces labels for values in strings.

func New

func New() Replacer

New makes a new replacer. This only needs to be called once in the setup and then call Replace for each incoming message. A replacer is safe for concurrent use.

func (Replacer) Replace

func (r Replacer) Replace(ctx context.Context, state request.Request, rr *dnstest.Recorder, s string) string

Replace performs a replacement of values on s and returns the string with the replaced values.

Jump to

Keyboard shortcuts

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