textutils

package
v0.99.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

NewBasicConfig 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