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