Example #1
0
func NewDataFile(name string, data []byte) nodefs.File {
	f := new(dataFile)
	f.name = name
	f.data = data
	f.File = nodefs.NewDefaultFile()
	return f
}
Example #2
0
func NewFile() *MutableDataFile {
	return &MutableDataFile{File: nodefs.NewDefaultFile()}
}