diff options
author | Jakob Unterwurzacher | 2015-09-05 20:11:20 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-09-05 20:11:20 +0200 |
commit | 7e564f928fef80b0485210603a8aa58b14ca5109 (patch) | |
tree | e011e362d47ae35bf55cc7709a8b47017ec51cca /frontend/checks.go | |
parent | 199d3fd79ff03222cf7498418b40e1263f8aa104 (diff) |
Fix size reporting
Diffstat (limited to 'frontend/checks.go')
-rw-r--r-- | frontend/checks.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend/checks.go b/frontend/checks.go new file mode 100644 index 0000000..30720f6 --- /dev/null +++ b/frontend/checks.go @@ -0,0 +1,31 @@ +package frontend + +import ( + "bazil.org/fuse/fs" +) + +// Compile-time interface checks. +var _ fs.FS = (*FS)(nil) +var _ fs.FSStatfser = (*FS)(nil) + +var _ fs.Node = (*Dir)(nil) +var _ fs.NodeCreater = (*Dir)(nil) +var _ fs.NodeMkdirer = (*Dir)(nil) +var _ fs.NodeRemover = (*Dir)(nil) +var _ fs.NodeRenamer = (*Dir)(nil) +var _ fs.HandleReadDirAller = (*Dir)(nil) + +var _ fs.HandleReader = (*File)(nil) +var _ fs.HandleWriter = (*File)(nil) +var _ fs.Node = (*File)(nil) +var _ fs.NodeOpener = (*File)(nil) +var _ fs.NodeSetattrer = (*File)(nil) + +func foo(h fs.HandleReadDirAller) { + +} + +func init() { + var d Dir + foo(&d) +} |