redact

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package redact provides functions to redact secrets from strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(s string, env []string) string

String redacts secret-looking environment variable values in s with their "$NAME" counterparts.

Each entry in env should be in "KEY=VALUE" format.

func Writer

func Writer(w io.Writer, env []string) io.Writer

Writer wraps the writer and redacts secret-looking environment variable values in the written data with their "$NAME" counterparts.

Each entry in env should be in "KEY=VALUE" format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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