leveldb: add some FileSystem doc comments.

R=adg, bradfitz
CC=golang-dev
http://codereview.appspot.com/6497056
This commit is contained in:
Nigel Tao 2012-08-30 15:29:13 +10:00
Родитель ec742c6ae6
Коммит 46cbf1fad8
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -27,8 +27,14 @@ type File interface {
// The names are filepath names: they may be / separated or \ separated,
// depending on the underlying operating system.
type FileSystem interface {
// Create creates the named file for writing, truncating it if it already
// exists.
Create(name string) (File, error)
// Open opens the named file for reading.
Open(name string) (File, error)
// Remove removes the named file or directory.
Remove(name string) error
// Rename renames a file. It overwrites the file at newname if one exists,