forked from mirror/afero
readme: remove inferred type from AppFs declaration.
This commit is contained in:
parent
9be650865e
commit
596850cca5
|
@ -61,11 +61,11 @@ import "github.com/spf13/afero"
|
||||||
|
|
||||||
First define a package variable and set it to a pointer to a filesystem.
|
First define a package variable and set it to a pointer to a filesystem.
|
||||||
```go
|
```go
|
||||||
var AppFs afero.Fs = afero.NewMemMapFs()
|
var AppFs = afero.NewMemMapFs()
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
var AppFs afero.Fs = afero.NewOsFs()
|
var AppFs = afero.NewOsFs()
|
||||||
```
|
```
|
||||||
It is important to note that if you repeat the composite literal you
|
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
|
will be using a completely new and isolated filesystem. In the case of
|
||||||
|
|
Loading…
Reference in New Issue