Move disk into its own package, remove bloated code

This commit is contained in:
Harshavardhana
2015-06-24 19:57:35 -07:00
parent 1682c748ac
commit 841ff01412
6 changed files with 198 additions and 365 deletions
+17
View File
@@ -0,0 +1,17 @@
package disk
// InvalidArgument invalid argument
type InvalidArgument struct{}
func (e InvalidArgument) Error() string {
return "Invalid argument"
}
// UnsupportedFilesystem unsupported filesystem type
type UnsupportedFilesystem struct {
Type string
}
func (e UnsupportedFilesystem) Error() string {
return "Unsupported filesystem: " + e.Type
}