An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.9% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 2.9% dependent repos on proxy.golang.org

proxy.golang.org : github.com/rhysd/go-tmpenv

Package tmpenv is a library to overwrite environment variables temporarily and to restore them with backup. All modified environment variable is restored when Restore() method is called. And all added environment variables are removed when Restore() method is called. Setting temporary environment variables and restoring them are common pattern on testing. However, they have a pitfall since setting empty value to environment variable is different from unsetting environment variable. tmpenv helps you to do the pattern correctly with less lines. This library is usually used for testing with environment variables.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rhysd/go-tmpenv
Keywords: environment-variables , golang , temporary
License: MIT
Latest release: over 6 years ago
First release: over 6 years ago
Namespace: github.com/rhysd
Dependent packages: 1
Dependent repositories: 3
Stars: 4 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago

    Loading...
    Readme
    Loading...