Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame^] | 1 | // 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 Wang | fcb72a5 | 2014-10-01 09:53:56 -0700 | [diff] [blame] | 9 | |
Robin Thellend | 6b17da7 | 2014-05-14 09:55:14 -0700 | [diff] [blame] | 10 | package main |
| 11 | |
| 12 | import ( |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 13 | "veyron.io/veyron/veyron/tools/mounttable/impl" |
Robin Thellend | 6b17da7 | 2014-05-14 09:55:14 -0700 | [diff] [blame] | 14 | |
Jiri Simsa | 519c507 | 2014-09-17 21:37:57 -0700 | [diff] [blame] | 15 | "veyron.io/veyron/veyron2/rt" |
Robin Thellend | 6b17da7 | 2014-05-14 09:55:14 -0700 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | func main() { |
Bogdan Caprita | 4258d88 | 2014-07-02 09:15:22 -0700 | [diff] [blame] | 19 | defer rt.Init().Cleanup() |
Robin Thellend | 6b17da7 | 2014-05-14 09:55:14 -0700 | [diff] [blame] | 20 | impl.Root().Main() |
| 21 | } |