gg_coding

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Cleaner

type Base64Cleaner struct {
	// Report of non-whitespace characters detected while cleaning base64 data.
	Errors []error
	// contains filtered or unexported fields
}

Base64Cleaner improves the tolerance of in Go's built-in base64 decoder by stripping out characters that would cause decoding to fail.

func NewBase64Cleaner

func NewBase64Cleaner(r io.Reader) *Base64Cleaner

NewBase64Cleaner returns a Base64Cleaner object for the specified reader. Base64Cleaner implements the io.Reader interface.

func (*Base64Cleaner) Read

func (bc *Base64Cleaner) Read(p []byte) (n int, err error)

Read method for io.Reader interface.

type QPCleaner

type QPCleaner struct {
	// contains filtered or unexported fields
}

QPCleaner scans quoted printable content for invalid characters and encodes them so that Go's quoted-printable decoder does not abort with an error.

func NewQPCleaner

func NewQPCleaner(r io.Reader) *QPCleaner

NewQPCleaner returns a QPCleaner for the specified reader.

func (*QPCleaner) Read

func (qp *QPCleaner) Read(dest []byte) (n int, err error)

Read method for io.Reader interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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