blob: 741e62fb9c555a19eb0f3f086f9acee580fa0cca [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 Thellend6b17da72014-05-14 09:55:14 -070010package main
11
12import (
Jiri Simsa519c5072014-09-17 21:37:57 -070013 "veyron.io/veyron/veyron/tools/mounttable/impl"
Robin Thellend6b17da72014-05-14 09:55:14 -070014
Jiri Simsa519c5072014-09-17 21:37:57 -070015 "veyron.io/veyron/veyron2/rt"
Robin Thellend6b17da72014-05-14 09:55:14 -070016)
17
18func main() {
Bogdan Caprita4258d882014-07-02 09:15:22 -070019 defer rt.Init().Cleanup()
Robin Thellend6b17da72014-05-14 09:55:14 -070020 impl.Root().Main()
21}