envresolver

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package envresolver resolves environment variables the way the platform does: case-sensitively, except on Windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(environment map[string]string) func(string) (string, bool)

New returns resolver for environment variables suitable for the current platform. Expected to be used with `MappingWithEquals.Resolve`. Updates in `environment` may not be reflected.

func NewWithCase

func NewWithCase(environment map[string]string, caseInsensitive bool) func(string) (string, bool)

NewWithCase returns resolver for environment variables with the specified case-sensitive condition. Expected to be used with `MappingWithEquals.Resolve`. Updates in `environment` may not be reflected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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