doloopwhile/go-fileinput

go-fileinput - An analogous article of fileinput module in Python