blob: 3723981c6c55d035647a89dbadb091ed448b3422 [file] [log] [blame]
Todd Wang0d12d712014-10-06 17:25:41 -07001// The following enables go generate to generate the doc.go file.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -08002//go:generate go run $VEYRON_ROOT/veyron/go/src/veyron.io/lib/cmdline/testdata/gendoc.go .
Todd Wang0d12d712014-10-06 17:25:41 -07003
Robin Thellend663bf482014-10-01 10:27:10 -07004package main
5
6import (
Matt Rosencrantz03f4b1d2014-11-24 11:01:17 -08007 "veyron.io/veyron/veyron2"
Robin Thellend663bf482014-10-01 10:27:10 -07008 "veyron.io/veyron/veyron2/rt"
Cosmos Nicolaouf889c732014-10-16 20:46:54 -07009
10 _ "veyron.io/veyron/veyron/profiles"
Robin Thellend663bf482014-10-01 10:27:10 -070011)
12
Matt Rosencrantz03f4b1d2014-11-24 11:01:17 -080013var runtime veyron2.Runtime
14
Robin Thellend663bf482014-10-01 10:27:10 -070015func main() {
Matt Rosencrantz03f4b1d2014-11-24 11:01:17 -080016 var err error
17 runtime, err = rt.New()
18 if err != nil {
19 panic(err)
20 }
21 defer runtime.Cleanup()
Robin Thellend18205cf2014-10-21 13:53:59 -070022 root().Main()
Robin Thellend663bf482014-10-01 10:27:10 -070023}