Bitwise IO: Difference between revisions
Content deleted Content added
→{{header|Go}}: Add Go solution |
m →{{header|Go}}: typo |
||
Line 1,389: | Line 1,389: | ||
}</lang> |
}</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. |
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 |
Additionally, <code>godoc -ex</code> will extract the code comments 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). |
(here the first goes with the <code>WriteBits</code> method and the later with the package documentation). |
||