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

secrets

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSecretsFile

func ParseSecretsFile(path string) (map[string]string, error)

ParseSecretsFile reads a dotenv-style secrets file and returns the key-value pairs as a map. Lines starting with # are comments, blank lines are ignored, and values are split on the first = only (values may contain =). Whitespace around keys is trimmed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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