Golang Clear File Before Writing