forked from mirror/afero
Merge pull request #257 from cksriprajittichai/fix-typos-in-readme-code
Fix typos in README code samples
This commit is contained in:
commit
64002605e4
|
@ -227,7 +227,7 @@ operation and a mock filesystem during testing or as needed.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
appfs := afero.NewOsFs()
|
appfs := afero.NewOsFs()
|
||||||
appfs.MkdirAll("src/a", 0755))
|
appfs.MkdirAll("src/a", 0755)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Memory Backed Storage
|
## Memory Backed Storage
|
||||||
|
@ -241,7 +241,7 @@ safely.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
mm := afero.NewMemMapFs()
|
mm := afero.NewMemMapFs()
|
||||||
mm.MkdirAll("src/a", 0755))
|
mm.MkdirAll("src/a", 0755)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### InMemoryFile
|
#### InMemoryFile
|
||||||
|
@ -306,7 +306,7 @@ Any Afero FileSystem can be used as an httpFs.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
httpFs := afero.NewHttpFs(<ExistingFS>)
|
httpFs := afero.NewHttpFs(<ExistingFS>)
|
||||||
fileserver := http.FileServer(httpFs.Dir(<PATH>)))
|
fileserver := http.FileServer(httpFs.Dir(<PATH>))
|
||||||
http.Handle("/", fileserver)
|
http.Handle("/", fileserver)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue