util_unix.go 252 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// +build !windows

package flatfs

import (
	"io/ioutil"
	"os"
)

10
func tempFile(dir, pattern string) (*os.File, error) {
11 12 13
	return ioutil.TempFile(dir, pattern)
}

Steven Allen's avatar
Steven Allen committed
14
func readFileOnce(filename string) ([]byte, error) {
15 16
	return ioutil.ReadFile(filename)
}