hariprasadraja
10/4/2019 - 11:16 AM

go file create temporary file

temporary files will be removed after the system gets restarted

	// Create a file in new temp directory
	tempFile, err := ioutil.TempFile(tempDirPath, "myTempFile.txt")
	if err != nil {
		log.Fatal(err)
	}