text

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 4 Imported by: 0

Documentation

Overview

Package text contains utilities dealing with the encoding of source text.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedEncoding = errors.New("unsupported encoding")

ErrUnsupportedEncoding is returned if an encoding is unsupported.

Functions

func ToUTF8

func ToUTF8(encodingName string, b []byte) (string, error)

ToUTF8 converts the given encoded text to a UTF-8 string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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