envfile

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package envfile provides helpers for reading and updating .env files while preserving comments, blank lines, and line order.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUpdates

func ApplyUpdates(path string, updates map[string]string) error

ApplyUpdates rewrites the .env at path, replacing values for any key in updates. Keys not already present are appended at the end. Comments and blank lines are preserved.

func UpdateAppURL

func UpdateAppURL(projectPath, scheme, domain string) error

UpdateAppURL sets APP_URL in the project's .env to scheme://domain. Silently does nothing if no .env exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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