摘要: 7.1:使用类似ByteCounter的想法,实现单词和行的计数器,实现时考虑使用bufio.ScanWords。 package main import ( "bufio" "fmt" ) type WordsCounter int func (c *WordsCounter) Write(con 阅读全文
posted @ 2019-01-20 14:54 zerofl-diary 阅读(1654) 评论(0) 推荐(0)