From: spf13 Date: Tue, 4 Nov 2014 05:30:35 +0000 (-0500) Subject: Setting to filesystems to the afero.fs interface so can be easily swapped out. X-Git-Tag: v0.13~347 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4b9ea105c2adfcee021d9902cd1b0b73be791a78;p=brevno-suite%2Fhugo Setting to filesystems to the afero.fs interface so can be easily swapped out. --- diff --git a/hugofs/fs.go b/hugofs/fs.go index 2fe3cbf7..c2b5e143 100644 --- a/hugofs/fs.go +++ b/hugofs/fs.go @@ -15,7 +15,7 @@ package hugofs import "github.com/spf13/afero" -var SourceFs = new(afero.OsFs) -var DestinationFS = new(afero.OsFs) +var SourceFs afero.Fs = new(afero.OsFs) +var DestinationFS afero.Fs = new(afero.OsFs) -//var DestinationFS = new(afero.MemMapFs) +//var DestinationFS afero.Fs = new(afero.MemMapFs)