util_unix.go 248 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 14 15 16
	return ioutil.TempFile(dir, pattern)
}

func readFile(filename string) ([]byte, error) {
	return ioutil.ReadFile(filename)
}