This loads the file relative to the go-tour repo root, which is not necessarily what ...
10 years, 9 months ago
(2013-07-30 03:35:17 UTC)
#2
This loads the file relative to the go-tour repo root, which is not necessarily
what you want when loading a custom file.
I suggest the default be empty string and it should use filepath.Join(root,
"tour.article") if the flag is not specified. Otherwise, the flag should specify
the absolute path to the desired content file. The flag should also be named
"content".
https://codereview.appspot.com/12038049/diff/18001/gotour/local.go File gotour/local.go (left): https://codereview.appspot.com/12038049/diff/18001/gotour/local.go#oldcode100 gotour/local.go:100: http.Handle("/talks/", fs) I don't get what this Handle is ...
10 years, 9 months ago
(2013-08-11 22:38:24 UTC)
#4
Issue 12038049: code review 12038049: go-tour: add -article flag
Created 10 years, 9 months ago by dupoxy
Modified 10 years, 9 months ago
Reviewers:
Base URL:
Comments: 5