go-utf8/nilreader.go

17 lines
274 B
Go

package utf8
type NilReaderError interface {
error
NilReaderError()
}
type internalNilReaderError struct{}
func (complainer internalNilReaderError) Error() string {
return "Nil Reader"
}
func (complainer internalNilReaderError) NilReaderError() {
// Nothing here.
}