Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 1 | // The following enables go generate to generate the doc.go file. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 2 | //go:generate go run $VEYRON_ROOT/veyron/go/src/veyron.io/lib/cmdline/testdata/gendoc.go . |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 3 | |
Robin Thellend | 663bf48 | 2014-10-01 10:27:10 -0700 | [diff] [blame] | 4 | package main |
| 5 | |
| 6 | import ( |
Matt Rosencrantz | 03f4b1d | 2014-11-24 11:01:17 -0800 | [diff] [blame] | 7 | "veyron.io/veyron/veyron2" |
Robin Thellend | 663bf48 | 2014-10-01 10:27:10 -0700 | [diff] [blame] | 8 | "veyron.io/veyron/veyron2/rt" |
Cosmos Nicolaou | f889c73 | 2014-10-16 20:46:54 -0700 | [diff] [blame] | 9 | |
| 10 | _ "veyron.io/veyron/veyron/profiles" |
Robin Thellend | 663bf48 | 2014-10-01 10:27:10 -0700 | [diff] [blame] | 11 | ) |
| 12 | |
Matt Rosencrantz | 03f4b1d | 2014-11-24 11:01:17 -0800 | [diff] [blame] | 13 | var runtime veyron2.Runtime |
| 14 | |
Robin Thellend | 663bf48 | 2014-10-01 10:27:10 -0700 | [diff] [blame] | 15 | func main() { |
Matt Rosencrantz | 03f4b1d | 2014-11-24 11:01:17 -0800 | [diff] [blame] | 16 | var err error |
| 17 | runtime, err = rt.New() |
| 18 | if err != nil { |
| 19 | panic(err) |
| 20 | } |
| 21 | defer runtime.Cleanup() |
Robin Thellend | 18205cf | 2014-10-21 13:53:59 -0700 | [diff] [blame] | 22 | root().Main() |
Robin Thellend | 663bf48 | 2014-10-01 10:27:10 -0700 | [diff] [blame] | 23 | } |