go-utf8/invalidutf8.go

17 lines
320 B
Go
Raw Normal View History

2018-07-02 09:16:14 +00:00
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.
}