1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:10:09 -07:00
go/doc/articles/wiki
Alex Schroeder 44618b28d4 wiki article: remove "flag" import from the code
When reading along the article, the extra code added in the final
version is not explained. The main function calls flag.Parse(), for
example, which will cause an error, unless the readers looks at the
entirety of final.go to see the import added.

The file shown to the users no longer has the extra flags. The testing
code is now in a patch that gets applied to final.go in order to create
final-test.go. This is the file that will be used to test the code,
matching final.go as much as possible.

Change-Id: I022f5f6c88e107c8ba5623661d74a8d260d05266
Reviewed-on: https://go-review.googlesource.com/11061
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-06-14 23:26:54 +00:00
..
edit.html doc: update wiki article to use html/template properly. 2012-04-26 17:50:44 +10:00
final-noclosure.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
final-noerror.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
final-parsetemplate.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
final-template.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
final-test.patch wiki article: remove "flag" import from the code 2015-06-14 23:26:54 +00:00
final.go wiki article: remove "flag" import from the code 2015-06-14 23:26:54 +00:00
get.go doc/articles/wiki: fix racy test 2012-11-19 12:36:15 -08:00
http-sample.go
index.html all: fix "the the" typos. 2014-05-20 14:42:07 -04:00
notemplate.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
part1-noerror.go
part1.go
part2.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
part3-errorhandling.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
part3.go doc/articles/wiki: fix path handling and clean up test process 2013-10-08 11:14:35 +11:00
test_edit.good
test_Test.txt.good
test_view.good
test.bash wiki article: remove "flag" import from the code 2015-06-14 23:26:54 +00:00
view.html doc: update wiki article to use html/template properly. 2012-04-26 17:50:44 +10:00