redact

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package redact removes known credentials from diagnostic output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(data []byte) string

JSON returns a log-only copy with known Slack credential fields redacted, including fields nested inside arrays and objects. Other content is preserved. Invalid JSON is omitted because its credential fields cannot be identified.

func URLOrigin

func URLOrigin(rawURL string) string

URLOrigin retains the scheme and host for connection diagnostics, omitting user information, paths, queries, and fragments that could contain credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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