utils

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodePage added in v1.4.0

func CodePage(types CoderType) string

func DecoderReader added in v1.4.0

func DecoderReader(types CoderType, r io.Reader) io.Reader

func DecoderWriter added in v1.4.0

func DecoderWriter(types CoderType, r io.Writer) io.Writer

func EncoderReader added in v1.4.0

func EncoderReader(types CoderType, r io.Reader) io.Reader

func EncoderWriter added in v1.4.0

func EncoderWriter(types CoderType, r io.Writer) io.Writer

Types

type CoderType added in v1.4.0

type CoderType int
const (
	T_Auto CoderType = iota
	T_UTF8
	T_GBK
	T_Big5
	T_ShiftJIS
	T_EUCKR
	T_GB18030
	T_UTF16_L
	T_UTF16_B
)

func CoderToType added in v1.4.0

func CoderToType(types string) CoderType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL