package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 28, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Decode(s []byte, from string) ([]byte, error)
-
func Encode(s []byte, to string) ([]byte, error)
-
func IsEncodingSupported(name string) bool
-
func Transform(s []byte, from, to string) ([]byte, error)
-
func TransformString(s string, from, to string) (string, error)
Decode decodes the bytes to UTF-8 bytes
Encode encodes the utf-8 bytes into target encoding
IsEncodingSupported checks if the encoding is supported
Transform decodes the input bytes with srouce encoding and
then encodes them into target encoding
TransformString decodes the input string with srouce encoding and
then encodes it into target encoding
Source Files
¶
Click to show internal directories.
Click to hide internal directories.