add debugging method for MemMapFs

This commit is contained in:
Steve Francia 2015-12-10 13:01:25 -05:00
parent 69df1e98f2
commit 4b2ab283a0
1 changed files with 6 additions and 0 deletions

View File

@ -369,3 +369,9 @@ func (m *MemMapFs) List() {
fmt.Println(x.Name(), y.Size())
}
}
func debugMemMapList(fs Fs) {
if x, ok := fs.(*MemMapFs); ok {
x.List()
}
}