Help us shape the future of Go! Take the 2026 Go Developer Survey

secrets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package secrets detects credential-shaped strings in text Ghost is about to post, as a last line of defence against an agent leaking one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kinds

func Kinds(fs []Finding) string

Kinds lists the distinct kinds found, in pattern order.

Types

type Finding

type Finding struct {
	Kind     string
	Redacted string
}

func Scan

func Scan(text string) []Finding

Jump to

Keyboard shortcuts

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