Update README.md File interface and docs badge

Add a GoDocs badge
Change the badges to .svg
Add Sync() to File interface
This commit is contained in:
Martin Bertschler 2015-11-05 14:49:48 +01:00 committed by spf13
parent 33ecf3dc6b
commit 1407a13a63
1 changed files with 28 additions and 26 deletions

View File

@ -2,7 +2,7 @@
A FileSystem Abstraction System for Go A FileSystem Abstraction System for Go
[![Build Status](https://travis-ci.org/spf13/afero.png)](https://travis-ci.org/spf13/afero) [![Build Status](https://travis-ci.org/spf13/afero.svg)](https://travis-ci.org/spf13/afero) [![GoDoc](https://godoc.org/github.com/spf13/afero?status.svg)](https://godoc.org/github.com/spf13/afero)
## Overview ## Overview
@ -124,12 +124,14 @@ File Interfaces and Methods Available:
io.Writer io.Writer
io.WriterAt io.WriterAt
Stat() : os.FileInfo, error Name() : string
Readdir(count int) : []os.FileInfo, error Readdir(count int) : []os.FileInfo, error
Readdirnames(n int) : []string, error Readdirnames(n int) : []string, error
WriteString(s string) : ret int, err error Stat() : os.FileInfo, error
Sync() : error
Truncate(size int64) : error Truncate(size int64) : error
Name() : string WriteString(s string) : ret int, err error
In our case we would call `AppFs.Open()` as an example because that is how weve defined to In our case we would call `AppFs.Open()` as an example because that is how weve defined to
access our filesystem. access our filesystem.