TODO: - There seems to be some inconsistency in when decoders return errors and when not. Also documentation seems to suggest they shouldn't return errors at all (except for UTF-16). - Encoders seem to rely on or at least benefit from the input being in NFC normal form. Perhaps add an example how us
| 30 | // Encoding is a character set encoding that can be transformed to and from |
| 31 | // UTF-8. |
| 32 | type Encoding interface { |
| 33 | // NewDecoder returns a Decoder. |
| 34 | NewDecoder() *Decoder |
| 35 | |
| 36 | // NewEncoder returns an Encoder. |
| 37 | NewEncoder() *Encoder |
| 38 | } |
| 39 | |
| 40 | // A Decoder converts bytes to UTF-8. It implements transform.Transformer. |
| 41 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…