diff options
author | Jakob Unterwurzacher | 2016-11-10 00:38:01 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-11-10 00:38:01 +0100 |
commit | e7f57695a6c7b3ed545793347506907c7aec3ecc (patch) | |
tree | 3ff3c6c29a064e24a8387a8cdbf31944014926f6 /internal/fusefrontend_reverse/virtualfile.go | |
parent | 75ebb28a625bc16d145f5acd9e0cc1d305716afe (diff) |
Fix golint warnings
$ golint ./... | grep -v underscore | grep -v ALL_CAPS
internal/fusefrontend_reverse/rfs.go:52:36: exported func NewFS returns unexported type *fusefrontend_reverse.reverseFS, which can be annoying to use
internal/nametransform/raw64_go1.5.go:10:2: exported const HaveRaw64 should have comment (or a comment on this block) or be unexported
Diffstat (limited to 'internal/fusefrontend_reverse/virtualfile.go')
-rw-r--r-- | internal/fusefrontend_reverse/virtualfile.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/fusefrontend_reverse/virtualfile.go b/internal/fusefrontend_reverse/virtualfile.go index 2447e16..cca4349 100644 --- a/internal/fusefrontend_reverse/virtualfile.go +++ b/internal/fusefrontend_reverse/virtualfile.go @@ -8,13 +8,13 @@ import ( "github.com/hanwen/go-fuse/fuse/nodefs" ) -func (rfs *reverseFS) newDirIVFile(cRelPath string) (nodefs.File, fuse.Status) { +func (rfs *ReverseFS) newDirIVFile(cRelPath string) (nodefs.File, fuse.Status) { cDir := saneDir(cRelPath) absDir, err := rfs.abs(rfs.decryptPath(cDir)) if err != nil { return nil, fuse.ToStatus(err) } - return rfs.NewVirtualFile(derivePathIV(cDir, ivPurposeDirIV), absDir) + return rfs.newVirtualFile(derivePathIV(cDir, ivPurposeDirIV), absDir) } type virtualFile struct { @@ -28,7 +28,7 @@ type virtualFile struct { ino uint64 } -func (rfs *reverseFS) NewVirtualFile(content []byte, parentFile string) (nodefs.File, fuse.Status) { +func (rfs *ReverseFS) newVirtualFile(content []byte, parentFile string) (nodefs.File, fuse.Status) { return &virtualFile{ File: nodefs.NewDefaultFile(), content: content, |