Documentation ¶
Overview ¶
Package textproto provides a mockable wrapper for net/textproto.
Index ¶
- type Impl
- func (*Impl) CanonicalMIMEHeaderKey(s string) string
- func (*Impl) Dial(network string, addr string) (*textproto.Conn, error)
- func (*Impl) NewConn(conn io.ReadWriteCloser) *textproto.Conn
- func (*Impl) NewReader(r *bufio.Reader) *textproto.Reader
- func (*Impl) NewWriter(w *bufio.Writer) *textproto.Writer
- func (*Impl) TrimBytes(b []byte) []byte
- func (*Impl) TrimString(s string) string
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 }
Click to show internal directories.
Click to hide internal directories.