Merge pull request #120 from thylong/master

readme: remove inferred type from AppFs declaration.
This commit is contained in:
Martin Bertschler 2017-10-04 01:03:46 +02:00 committed by GitHub
commit 0936e8d1b2
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ import "github.com/spf13/afero"
First define a package variable and set it to a pointer to a filesystem.
```go
var AppFs afero.Fs = afero.NewMemMapFs()
var AppFs = afero.NewMemMapFs()
or
var AppFs afero.Fs = afero.NewOsFs()
var AppFs = afero.NewOsFs()
```
It is important to note that if you repeat the composite literal you
will be using a completely new and isolated filesystem. In the case of