dotenv

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data string) (map[string]string, error)

Parse parses a .env formatted string into key/value pairs.

Supports lines like:

KEY=value
KEY="quoted # not comment"
KEY='single quoted'
export KEY=value

Comments start with '#' when unquoted (at start or preceded by whitespace).

Types

This section is empty.

Jump to

Keyboard shortcuts

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