Use mktemp
gofmt is the wrong sized hammer for this job
Added godoc