go-utf8/nilwriter.go

17 lines
305 B
Go
Raw Normal View History

2018-07-02 18:26:04 +00:00
package utf8s
type NilWriterComplainer interface {
error
NilWriterComplainer()
}
type internalNilWriterComplainer struct{}
func (complainer internalNilWriterComplainer) Error() string {
return "Nil Writer"
}
func (complainer internalNilWriterComplainer) NilWriterComplainer() {
// Nothing here.
}