shared

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretsReplacer

func NewSecretsReplacer(secrets []string) *strings.Replacer

NewSecretsReplacer creates a new strings.Replacer to replace sensitive strings with asterisks. It takes a slice of secrets strings as input and returns a populated strings.Replacer that will replace those secrets with asterisks. Each secret string is split on newlines to handle multi-line secrets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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