bufwrite go file