go-utf8/nilreader.go

17 lines
305 B
Go

package utf8s
type NilReaderComplainer interface {
error
NilReaderComplainer()
}
type internalNilReaderComplainer struct{}
func (complainer internalNilReaderComplainer) Error() string {
return "Nil Reader"
}
func (complainer internalNilReaderComplainer) NilReaderComplainer() {
// Nothing here.
}