This is from book Go Programming Languague. The go lang bible
Primary LanguageGo
1.3 Finding Duplicate Lines