redact

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package redact provides utilities to mask sensitive information before logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSN

func DSN(dsn string) string

DSN returns the DSN string with any credentials masked, suitable for safe logging. It handles:

  • URI-style credentials: quic://user:pass@host → quic://***:***@host
  • Query parameter credentials: ?user=x&pass=y → ?user=***&pass=***

Types

This section is empty.

Jump to

Keyboard shortcuts

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