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

envparse

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripQuotes

func StripQuotes(s string) string

StripQuotes removes surrounding single or double quotes from an env value.

Types

type Entry

type Entry struct {
	Key string
	Val string
}

Entry represents a single key=value pair from an env file.

func ParseFile

func ParseFile(path string) ([]Entry, error)

ParseFile reads an env file and returns all key=value entries, skipping blank lines and comments.

Jump to

Keyboard shortcuts

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