masktoken

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaskTokenFromString

func MaskTokenFromString(log string, token string) (string, error)

MaskTokenFromString redacts all matches for the given token from the provided string, replacing them with "*****". The token is expected to be a valid UTF-8 string. This can for example be used to remove sensitive information from error messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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