WriteStringAndCheck writes a string into a buffer, and checks if the error is not nil.
(b io.StringWriter, s string)
| 241 | |
| 242 | // WriteStringAndCheck writes a string into a buffer, and checks if the error is not nil. |
| 243 | func WriteStringAndCheck(b io.StringWriter, s string) { |
| 244 | _, err := b.WriteString(s) |
| 245 | CheckErr(err) |
| 246 | } |
no test coverage detected