dos2unix

Package dos2unix provides functions to convert between dos and unix line termination styles

Go Reference