textproto

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package textproto provides a mockable wrapper for net/textproto.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) CanonicalMIMEHeaderKey

func (*Impl) CanonicalMIMEHeaderKey(s string) string

func (*Impl) Dial

func (*Impl) Dial(network string, addr string) (*textproto.Conn, error)

func (*Impl) NewConn

func (*Impl) NewConn(conn io.ReadWriteCloser) *textproto.Conn

func (*Impl) NewReader

func (*Impl) NewReader(r *bufio.Reader) *textproto.Reader

func (*Impl) NewWriter

func (*Impl) NewWriter(w *bufio.Writer) *textproto.Writer

func (*Impl) TrimBytes

func (*Impl) TrimBytes(b []byte) []byte

func (*Impl) TrimString

func (*Impl) TrimString(s string) string

type Interface

type Interface interface {
	CanonicalMIMEHeaderKey(s string) string
	Dial(network string, addr string) (*textproto.Conn, error)
	NewConn(conn io.ReadWriteCloser) *textproto.Conn
	NewReader(r *bufio.Reader) *textproto.Reader
	NewWriter(w *bufio.Writer) *textproto.Writer
	TrimBytes(b []byte) []byte
	TrimString(s string) string
}

Jump to

Keyboard shortcuts

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