Documentation ¶
Overview ¶
Package writers 提供了一组实现 io.Writer 接口的结构。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer 实现对输出内容的缓存,只有输出数量达到指定的值 才会真正地向指定的 io.Writer 输出。
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console 带色彩输出的控制台。
func NewConsole ¶
NewConsole 新建 Console 实例
out 为输出方向,可以是 colors.Stderr 和 colors.Stdout 两个值。 foreground,background 为输出文字的前景色和背景色。
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container 为 io.Writer 的容器。
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
SMTP 实现 io.Writer 接口的邮件发送。
type WriteFlushAdder ¶
io.Writer + Flusher + Adder
type WriteFlusher ¶
WriteFlusher 表示 io.Writer + Flusher
Click to show internal directories.
Click to hide internal directories.