Registry / utility / gogap-env-strings

gogap-env-strings

JSON →
library0.0.1gogounverified

A Go library for parsing and expanding environment variable strings with default values and nested references.

go get github.com/gogap/env_strings
INSTALL
IMPORT
SIG · GOGAP-ENV-STRINGS
G
gogap-env-strings
utilitygov0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

env_strings
github.com/gogap/env_strings

Expands environment variable references in a string with optional defaults.

package main import ( "fmt" "github.com/gogap/env_strings" ) func main() { result, err := env_strings.Expand("Hello ${NAME:-World}") if err != nil { panic(err) } fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
gogap-env-strings — go get gogap-env-strings · libregistry