Package quotedprintable

import "mime/quotedprintable"
Overview
Index
Examples

Overview ▾

包quotedprintable实施RFC 2045指定的quoted-printable编码.

type Reader 1.5

Reader是带引号的可打印解码器.

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

func NewReader 1.5

func NewReader(r io.Reader) *Reader

NewReader返回带引号的可打印阅读器,从r解码.

Example

Hello, Gophers! <nil>
invalid escape: <b style="font-size: 200%">hello</b> <nil>
Hello, Gophers! This symbol will be unescaped: = and this will be written in one line. <nil>

func (*Reader) Read 1.5

func (r *Reader) Read(p []byte) (n int, err error)

读取从底层读取器读取和解码带引号的可打印数据.

type Writer 1.5

编写器是实现io.WriteCloser的带引号的可打印编写器.

type Writer struct {
    // Binary mode treats the writer's input as pure binary and processes end of
    // line bytes as binary data.
    Binary bool
    // contains filtered or unexported fields
}

func NewWriter 1.5

func NewWriter(w io.Writer) *Writer

NewWriter返回一个写入w的新Writer.

Example

These symbols will be escaped: =3D =09

func (*Writer) Close 1.5

func (w *Writer) Close() error

Close关闭Writer,将所有未写入的数据刷新到基础io.Writer,但不关闭基础io.Writer.

func (*Writer) Write 1.5

func (w *Writer) Write(p []byte) (n int, err error)

Write使用带引号的可打印编码对p进行编码,并将其写入基础io.Writer. 它将行长度限制为76个字符. 在关闭Writer之前,不必刷新已编码的字节.

by  ICOPY.SITE