ref: Add support for cmdline.Env.Vars

This adds envrionment variable support to cmdline.Env, and also
updates some programs to use this support.  The main benefit of
using cmdline.Env.Vars is that it makes testing easier, since you
can just pass in your own map.

We represent environment variables as map[string]string, which is
a nice simple form for lookups and mutations.  Originally I was
planning on using *envvar.Vars, but the delta-tracking support is
probably unnecessary, and the native Go map syntax is nicer.

A subsequent change will update the v23.Init and test.InitForTest
mechanisms to support explicit passing of args and envvars, and
will take advantage of this support.

MultiPart: 2/2
Change-Id: Ic9bb9a71b05fd73dafa630f069236c716ee33fb2
10 files changed
tree: d0b87f5d4c5b68c717f992fb4ab6133ef7612a2f
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.