wc.go ���8�U @?�8�U package main import ( "flag" "fmt" "io" "log" "os" "runtime/pprof" "sync" "unicode" "unicode/utf8" ) type result struct { err error filename string bytes int lines int words int } var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") var showbytes = flag.Bool("c", false, "print bytes") var showlines = flag.Bool("l", false, "print lines") var showwords = fl
![おもしろそうだったので自分もwc書いてみたけど、元のCで書かれたwcをあんまり改良するところがなかった…](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)