Closed pierrre closed 9 years ago
You should add flag.Parse() at the beginning of main(). The flag package doesn't work if you don't call it.
flag.Parse()
main()
flag
By the way, godoc uses the -http flag instead of -listen.
-http
-listen
b671756f355ca32207c3a39d0c303922edcd4a97 fixed it. Thanks.
You can open the browser automatically with https://github.com/pkg/browser
You should add
flag.Parse()
at the beginning ofmain()
. Theflag
package doesn't work if you don't call it.