Commit 1fe92061 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run gofmt.

parent f1a7913d
...@@ -71,9 +71,9 @@ func (me *ZipDirTree) FindDir(name string) *ZipDirTree { ...@@ -71,9 +71,9 @@ func (me *ZipDirTree) FindDir(name string) *ZipDirTree {
} }
type ZipFileFuse struct { type ZipFileFuse struct {
zipReader *zip.Reader zipReader *zip.Reader
tree *ZipDirTree tree *ZipDirTree
ZipFileName string ZipFileName string
fuse.DefaultPathFilesystem fuse.DefaultPathFilesystem
} }
...@@ -101,7 +101,6 @@ func zipFilesToTree(files []*zip.File) *ZipDirTree { ...@@ -101,7 +101,6 @@ func zipFilesToTree(files []*zip.File) *ZipDirTree {
} }
func NewZipFileFuse(name string) *ZipFileFuse { func NewZipFileFuse(name string) *ZipFileFuse {
z := new(ZipFileFuse) z := new(ZipFileFuse)
r, err := zip.OpenReader(name) r, err := zip.OpenReader(name)
......
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"testing" "testing"
"fmt" "fmt"
) )
var _ = fmt.Println var _ = fmt.Println
func TestIntToExponent(t *testing.T) { func TestIntToExponent(t *testing.T) {
...@@ -29,7 +30,7 @@ func TestBufferPool(t *testing.T) { ...@@ -29,7 +30,7 @@ func TestBufferPool(t *testing.T) {
bp := NewBufferPool() bp := NewBufferPool()
b1 := bp.AllocBuffer(PAGESIZE) b1 := bp.AllocBuffer(PAGESIZE)
_ = bp.AllocBuffer(2*PAGESIZE) _ = bp.AllocBuffer(2 * PAGESIZE)
bp.FreeBuffer(b1) bp.FreeBuffer(b1)
b1_2 := bp.AllocBuffer(PAGESIZE) b1_2 := bp.AllocBuffer(PAGESIZE)
......
...@@ -117,4 +117,3 @@ func (me *FuseDir) ReadDir(input *ReadIn) (*DirEntryList, Status) { ...@@ -117,4 +117,3 @@ func (me *FuseDir) ReadDir(input *ReadIn) (*DirEntryList, Status) {
func (me *FuseDir) ReleaseDir() { func (me *FuseDir) ReleaseDir() {
} }
...@@ -587,8 +587,7 @@ type PathFilesystem interface { ...@@ -587,8 +587,7 @@ type PathFilesystem interface {
// Include this method in your implementation to inherit default nop // Include this method in your implementation to inherit default nop
// implementations. // implementations.
type DefaultRawFuseDir struct {} type DefaultRawFuseDir struct{}
type DefaultPathFilesystem struct {} type DefaultPathFilesystem struct{}
type DefaultRawFuseFile struct {} type DefaultRawFuseFile struct{}
type DefaultRawFuseFileSystem struct{} type DefaultRawFuseFileSystem struct{}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment