parser

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar struct {
	Key   string
	Value string
}

EnvVar represents a parsed environment variable

func ParseEnvFile

func ParseEnvFile(filepath string) ([]EnvVar, error)

ParseEnvFile parses a .env file and returns a slice of environment variables Supports: - KEY=value - KEY="value" - KEY='value' - Multiline values with quotes - Comments (lines starting with #) - Empty lines

Jump to

Keyboard shortcuts

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