ref: Replace x/devtools/internal/envutil with x/lib/envvar

A while ago I wrote envutil in the devtools repo, to make it
easier to deal with environment variables, and to make it easy
for the v23 tool to keep track of the mutations it had made.

Later on I noticed that there was similar code in x/ref in a few
places.

This CL removes envutil, and adds a new package envvar that may
be used by all other packages.  It behaves similarly to envutil,
and also to the code scattered around x/ref.

In a subsequent CL I'll add cmdline support for environment
variables using envvar.

MultiPart: 2/2

Change-Id: Idd5c06ab79badf678cd5ce7e87493c04ea16204a
11 files changed
tree: a4843a74c4748073a0fee14256c20ee8cbb88a21
  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.