Documentation ¶ Index ¶ func WriteString(w io.Writer, s string) (n int, err error) type StringWriter Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WriteString ¶ func WriteString(w io.Writer, s string) (n int, err error) WriteString writes the contents of the string s to w, which accepts a slice of bytes. If w implements StringWriter, its WriteString method is invoked directly. Otherwise, w.Write is called exactly once. Types ¶ type StringWriter ¶ type StringWriter interface { WriteString(s string) (n int, err error) } StringWriter is the interface that wraps the WriteString method. Source Files ¶ View all Source files io.go Click to show internal directories. Click to hide internal directories.