envfile

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package envfile parses .env files into key/value pairs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFirstEnvVars

func LoadFirstEnvVars(candidates ...string) ([]string, error)

LoadFirstEnvVars reads the first existing env file from candidates and returns its variables as sorted KEY=value entries. If no candidate exists, it returns nil and no error.

Types

type File

type File struct {
	Path      string
	Variables map[string]string
}

File is a loaded Volcano env file.

func Load

func Load(fileArg string) (*File, error)

Load resolves and reads the selected Volcano env file.

Jump to

Keyboard shortcuts

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