]> Cypherpunks repositories - gostls13.git/commit
wiki article: remove "flag" import from the code
authorAlex Schroeder <alex@gnu.org>
Sun, 14 Jun 2015 10:54:05 +0000 (12:54 +0200)
committerAndrew Gerrand <adg@golang.org>
Sun, 14 Jun 2015 23:26:54 +0000 (23:26 +0000)
commit44618b28d496b281c3966742eacfe3618f060d21
tree57162ea63105e481e7e2fff415a7177976107ffc
parent202de394f2f7864eb871d65b733479115cfabc39
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>
doc/articles/wiki/final-test.patch [new file with mode: 0644]
doc/articles/wiki/final.go
doc/articles/wiki/test.bash