{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/oxplot/starenv","name":"github.com/oxplot/starenv","description":"Package starenv implements populating environmental variables from variety of\nsources.\n\nSimplest way to use starenv is to import the autoload package:\n\nThe above will iterate through all environmental variables looking for\nspecially formatted values which tell it where to load the final values from.\nAfter the above is imported, you can use the usual os.Getenv() to get the\nvalue of environmental variables.\n\nThe source of a value is defined as a pipeline of \"derefer\" tags followed by\nthe reference for the last derefer. Here is an example of a environmental\nvariable specifying to load its value from a base64 encoded file and decrypt\nit using GPG:\n\nEach derefer is applied in reverse, starting with \"file\" which loads the\ncontent of \"~/.github_token\". \"b64\" then decodes it and finally \"gpg\"\ndecrypts it.\n\nIf the value of an environmental variable starts with Loader.Star (which\ndefaults to \"*\"), it is treated as a pipeline. Otherwise, it's treated as a\nliteral value and left unchagned. In the unlikely case where a literal value\nstarting with Loader.Star is needed, the following can be used:\n\nHere the blank derefer treats everything after \"*:\" as literal and returns\nit, thus leading to GLOB_PAT being set to \"*.terraform\".\n\nPackage autoload registers a set of derefers that are included in derefer\npackage with appropriate tags. To have more control over tags and the timing\nof when the loading happens, you can register each derefer manually and call\nLoad() to populate the env vars. When using the autoload package, .env file is\nalso read and loaded. To disable this, set DOTENV_ENABLED=0.\n\nAny type that implements Derefer methods can be registered and used in the\npipeline.","version":"v0.14.0","softwareVersion":"v0.14.0","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://github.com/oxplot/starenv","issueTracker":"https://github.com/oxplot/starenv/issues","url":"https://github.com/oxplot/starenv","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2021-09-06","dateModified":"2023-02-14","datePublished":"2023-02-14","copyrightYear":2021,"downloadUrl":"https://proxy.golang.org/github.com/oxplot/starenv/@v/v0.14.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/oxplot/starenv#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/oxplot/starenv"],"https://www.w3.org/ns/activitystreams#likes":6}