utf8s.InvalidUTF8Complainer

master
Charles Iliya Krempeaux 2018-07-02 02:16:14 -07:00
parent f755b9ec77
commit a2fb1ef442
1 changed files with 16 additions and 0 deletions

16
invalidutf8.go 100644
View File

@ -0,0 +1,16 @@
package utf8s
type InvalidUTF8Complainer interface {
error
InvalidUTF8Complainer()
}
type internalInvalidUTF8Complainer struct{}
func (complainer internalInvalidUTF8Complainer) Error() string {
return "Invalid UTF-8"
}
func (complainer internalInvalidUTF8Complainer) InvalidUTF8Complainer() {
// Nothing here.
}