diff --git a/src/os/file.go b/src/os/file.go index 86db953e..ca6cdf6d 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -111,6 +111,16 @@ func (f *File) Write(b []byte) (n int, err error) { return } +// WriteString is like Write, but writes the contents of string s rather than a +// slice of bytes. +func (f *File) WriteString(s string) (n int, err error) { + return f.Write([]byte(s)) +} + +func (f *File) WriteAt(b []byte, off int64) (n int, err error) { + return 0, ErrNotImplemented +} + // Close closes the File, rendering it unusable for I/O. func (f *File) Close() (err error) { err = f.handle.Close()