utf8s.NilReaderComplainer

master
Charles Iliya Krempeaux 2018-07-02 02:15:35 -07:00
parent 4e0aa2bdc2
commit f755b9ec77
1 changed files with 16 additions and 0 deletions

16
nilreader.go 100644
View File

@ -0,0 +1,16 @@
package utf8s
type NilReaderComplainer interface {
error
NilReaderComplainer()
}
type internalNilReaderComplainer struct{}
func (complainer internalNilReaderComplainer) Error() string {
return "Nil Reader"
}
func (complainer internalNilReaderComplainer) NilReaderComplainer() {
// Nothing here.
}