charset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s []byte, enc string) ([]byte, error)

Converts given bytes to a UTF-8 bytes

func DecodeReader

func DecodeReader(s io.Reader, enc string) ([]byte, error)

Converts given Reader to a UTF-8 bytes

func Encode

func Encode(s []byte, enc string) ([]byte, error)

Converts a bytes to a given encoding bytes

func EncodeReader

func EncodeReader(s io.Reader, enc string) ([]byte, error)

Converts a Reader to bytes encoded with given encoding

Types

This section is empty.

Jump to

Keyboard shortcuts

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