WriteString is like Write, but writes the contents of string s rather than a slice of bytes.
(s string)
| 170 | // WriteString is like Write, but writes the contents of string s rather than a |
| 171 | // slice of bytes. |
| 172 | func (f *File) WriteString(s string) (n int, err error) { |
| 173 | return f.Write([]byte(s)) |
| 174 | } |
| 175 | |
| 176 | var errWriteAtInAppendMode = errors.New("os: invalid use of WriteAt on file opened with O_APPEND") |
| 177 |