Bitwise IO: Difference between revisions

m
(→‎{{header|Go}}: Add Go solution)
Line 1,389:
}</lang>
With this test file, running <code>go test -v</code> will compile the package and run the example verifying the output is as listed above in the <code>// Output:</code> comments.
Additionally, <code>godoc -ex</code> will extract the code comments and for documentation and include the examples at the appropriate place
(here the first goes with the <code>WriteBits</code> method and the later with the package documentation).
 
Anonymous user