golang write to file line by line