14 lines
397 B
Go
Raw Normal View History

/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package textencoding
2018-07-25 16:14:19 +10:00
// NewWinAnsiTextEncoder returns a SimpleEncoder that implements WinAnsiEncoding.
func NewWinAnsiTextEncoder() SimpleEncoder {
const baseName = "WinAnsiEncoding"
enc := newSimpleTextEncoder(winAnsiEncoding, baseName, nil)
return *enc
}