2022-07-18 23:36:02 +00:00
|
|
|
package utf8
|
2018-07-02 09:15:35 +00:00
|
|
|
|
2023-08-18 12:57:56 +00:00
|
|
|
type NilReaderError interface {
|
2018-07-02 09:15:35 +00:00
|
|
|
error
|
2023-08-18 12:57:56 +00:00
|
|
|
NilReaderError()
|
2018-07-02 09:15:35 +00:00
|
|
|
}
|
|
|
|
|
2023-08-18 12:57:56 +00:00
|
|
|
type internalNilReaderError struct{}
|
2018-07-02 09:15:35 +00:00
|
|
|
|
2023-08-18 12:57:56 +00:00
|
|
|
func (complainer internalNilReaderError) Error() string {
|
2018-07-02 09:15:35 +00:00
|
|
|
return "Nil Reader"
|
|
|
|
}
|
|
|
|
|
2023-08-18 12:57:56 +00:00
|
|
|
func (complainer internalNilReaderError) NilReaderError() {
|
2018-07-02 09:15:35 +00:00
|
|
|
// Nothing here.
|
|
|
|
}
|