runtime/internal: hack to support v23 flags in mojo

Mojo services cannot be configured via command-line flags.
We'd like to run Syncbase as a Mojo service, and to configure
v23 in much the same way as we would normally. This CL enables
that by splitting the v23 flag parsing code into "+build mojo"
and "+build !mojo" versions (i.e. dependent on presence of the
"mojo" build tag).

If the "mojo" tag is specified, we parse flags from the env
var V23_MOJO_FLAGS instead of from os.Args.

Change-Id: I6f795c30920b29e5b9f0de58679bbfe91f944b1a
3 files changed
tree: 502a1db7c07eca7c753f195f9548c94510d2677f
  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.