Input Output
K&R’s introductory examples using the C stdio.h library’s getchar function can’t be directly translated to Go easily.
A search brought up Create a WC clone with Golang which I’ll use as my template. It’s also a nice example of test-driven development which is lacking in the classic K&R tutorial.