17 lines
304 B
Go
17 lines
304 B
Go
package utf8
|
|
|
|
type NilWriterComplainer interface {
|
|
error
|
|
NilWriterComplainer()
|
|
}
|
|
|
|
type internalNilWriterComplainer struct{}
|
|
|
|
func (complainer internalNilWriterComplainer) Error() string {
|
|
return "Nil Writer"
|
|
}
|
|
|
|
func (complainer internalNilWriterComplainer) NilWriterComplainer() {
|
|
// Nothing here.
|
|
}
|