Documentation ¶
Overview ¶
Package iconv is golang bindings to libiconv that converts string to requested character encoding.
Index ¶
- Constants
- Variables
- type Iconv
- func (cd Iconv) Close() error
- func (cd Iconv) Conv(b []byte, outbuf []byte) (out []byte, inleft int, err error)
- func (cd Iconv) ConvString(s string) string
- func (cd Iconv) Do(inbuf []byte, in int, outbuf []byte) (out, inleft int, err error)
- func (cd Iconv) DoWrite(w io.Writer, inbuf []byte, in int, outbuf []byte) (inleft int, err error)
- type Reader
- type Writer
Constants ¶
View Source
const DefaultBufSize = 4096
DefaultBufSize const
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Iconv ¶
Iconv represents an iconv handle.
func Open ¶
Open returns a conversion descriptor cd, cd contains a conversion state and can not be used in multiple threads simultaneously.
func (Iconv) ConvString ¶
ConvString converts string to requested character encoding.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader represents an auto encoding converting Reader.
Click to show internal directories.
Click to hide internal directories.