secrets

package
v0.1.124 Latest Latest
Warning

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

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

Documentation

Overview

Package secrets recognises the secrets providers issue (API keys, tokens, private keys, database URLs with a password) in a string: what lidza check refuses in code (L010) and what the audit pack redacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At(s string) (string, int)

At names the kind of secret found in s and its byte offset, or "" and -1.

func Kind

func Kind(s string) string

Kind names the secret s holds ("a GitHub token"), "" when none.

Types

This section is empty.

Jump to

Keyboard shortcuts

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