go-utf8/nilwriter.go

17 lines
274 B
Go
Raw Normal View History

2022-07-18 23:36:02 +00:00
package utf8
2018-07-02 18:26:04 +00:00
2023-08-18 12:57:56 +00:00
type NilWriterError interface {
2018-07-02 18:26:04 +00:00
error
2023-08-18 12:57:56 +00:00
NilWriterError()
2018-07-02 18:26:04 +00:00
}
2023-08-18 12:57:56 +00:00
type internalNilWriterError struct{}
2018-07-02 18:26:04 +00:00
2023-08-18 12:57:56 +00:00
func (complainer internalNilWriterError) Error() string {
2018-07-02 18:26:04 +00:00
return "Nil Writer"
}
2023-08-18 12:57:56 +00:00
func (complainer internalNilWriterError) NilWriterError() {
2018-07-02 18:26:04 +00:00
// Nothing here.
}