Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + const ASCIISub + var ErrInvalidUTF8 = errors.New("encoding: invalid UTF-8") + var UTF8Validator transform.Transformer = utf8Validator + type Decoder struct + func (d *Decoder) Bytes(b []byte) ([]byte, error) + func (d *Decoder) Reader(r io.Reader) io.Reader + func (d *Decoder) String(s string) (string, error) + type Encoder struct + func HTMLEscapeUnsupported(e *Encoder) *Encoder + func ReplaceUnsupported(e *Encoder) *Encoder + func (e *Encoder) Bytes(b []byte) ([]byte, error) + func (e *Encoder) String(s string) (string, error) + func (e *Encoder) Writer(w io.Writer) io.Writer + type Encoding interface + NewDecoder func() *Decoder + NewEncoder func() *Encoder + var Nop Encoding = nop{} + var Replacement Encoding = replacement{}