diff --git a/decoder_windows.go b/decoder_windows.go index 130af33..1d85d3f 100644 --- a/decoder_windows.go +++ b/decoder_windows.go @@ -7,19 +7,19 @@ import ( ) func newDecoder(cp uintptr) transform.Transformer { - return Decoder{CP: cp} + return _Decoder{CP: cp} } -// Decoder is a transform.Transformer implementation that converts ANSI strings to UTF8 strings. -type Decoder struct { +// _Decoder is a transform.Transformer implementation that converts ANSI strings to UTF8 strings. +type _Decoder struct { CP uintptr } -// Reset does nothing in Decoder -func (f Decoder) Reset() {} +// Reset does nothing in _Decoder +func (f _Decoder) Reset() {} // Transform converts the ANSI string in src to a UTF8 string and stores it in dst. -func (f Decoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { +func (f _Decoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for len(src) > 0 { // println("called Transform") n := bytes.IndexByte(src, '\n') diff --git a/encoder_windows.go b/encoder_windows.go index 6be1921..5e9b996 100644 --- a/encoder_windows.go +++ b/encoder_windows.go @@ -7,19 +7,19 @@ import ( ) func newEncoder(cp uintptr) transform.Transformer { - return Encoder{CP: cp} + return _Encoder{CP: cp} } -// Encoder is a transformer implementation that converts UTF8 strings to ANSI strings. -type Encoder struct { +// _Encoder is a transformer implementation that converts UTF8 strings to ANSI strings. +type _Encoder struct { CP uintptr } -// Reset does nothing in Encoder -func (f Encoder) Reset() {} +// Reset does nothing in _Encoder +func (f _Encoder) Reset() {} // Transform converts the UTF8 string in src to an ANSI string and stores it in dst. -func (f Encoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { +func (f _Encoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for len(src) > 0 { // println("called Transform") n := bytes.IndexByte(src, '\n')