textutils

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncodingOverridesMap = encodingOverridesMap{}

Functions

func IsNop

func IsNop(enc string) bool

Types

type Encoding

type Encoding struct {
	Encoding encoding.Encoding
	// contains filtered or unexported fields
}

func (*Encoding) Decode

func (e *Encoding) Decode(msgBuf []byte) ([]byte, error)

Decode converts the bytes in msgBuf to utf-8 from the configured encoding

type EncodingConfig

type EncodingConfig struct {
	Encoding string `mapstructure:"encoding,omitempty"`
}

EncodingConfig is the configuration of a Encoding helper

func NewEncodingConfig

func NewEncodingConfig() EncodingConfig

NewEncodingConfig creates a new Encoding config

func (EncodingConfig) Build

func (c EncodingConfig) Build() (Encoding, error)

Build will build an Encoding operator.

Jump to

Keyboard shortcuts

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