blob: 2af525dc1818d9a66e76f81af8032f5b207599d2 [file] [log] [blame]
Todd Wang0d12d712014-10-06 17:25:41 -07001// The following enables go generate to generate the doc.go file.
2// Things to look out for:
3// 1) go:generate evaluates double-quoted strings into a single argument.
4// 2) go:generate performs $NAME expansion, so the bash cmd can't contain '$'.
5// 3) We generate into a *.tmp file first, otherwise go run will pick up the
6// initially empty *.go file, and fail.
7//
8//go:generate bash -c "{ echo -e '// This file was auto-generated via go generate.\n// DO NOT UPDATE MANUALLY\n\n/*' && veyron go run *.go help -style=godoc ... && echo -e '*/\npackage main'; } > ./doc.go.tmp && mv ./doc.go.tmp ./doc.go"
Todd Wangfcb72a52014-10-01 09:53:56 -07009
Robin Thellend9259f3b2014-05-21 10:07:24 -070010package main
11
12import (
Jiri Simsa519c5072014-09-17 21:37:57 -070013 "veyron.io/veyron/veyron/tools/profile/impl"
Robin Thellend9259f3b2014-05-21 10:07:24 -070014
Jiri Simsa519c5072014-09-17 21:37:57 -070015 "veyron.io/veyron/veyron2/rt"
Robin Thellend9259f3b2014-05-21 10:07:24 -070016)
17
18func main() {
19 r := rt.Init()
Bogdan Caprita4258d882014-07-02 09:15:22 -070020 defer r.Cleanup()
Robin Thellend9259f3b2014-05-21 10:07:24 -070021
22 impl.Root().Main()
23}