Documentation
¶
Overview ¶
Package dotenv provides functionality for loading environment variables from a `.env` file and setting them as environment variables in the system. It supports reading key-value pairs from a file, skipping invalid or comment lines, and allows users to customize the filename and logger through options.
Example usage:
envVars, err := dotenv.Config( dotenv.WithFilename(".env"), dotenv.WithLogger(log.New(os.Stdout, "dotenv: ", log.LstdFlags)), ) if err != nil { log.Fatal(err) } fmt.Println(envVars)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.