Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeWriter ¶
type SafeWriter struct {
// contains filtered or unexported fields
}
SafeWriter 文件读写器 (线程安全).
func NewSafeWriter ¶
func NewSafeWriter(fn string) (*SafeWriter, error)
NewSafeWriter 新建SafeWriter对象.
func (*SafeWriter) WriteString ¶
func (w *SafeWriter) WriteString(content string) (int, error)
WriteString 写字符串.
Click to show internal directories.
Click to hide internal directories.