writer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileNameTimeFormat = "2006-01-02"

FileNameTimeFormat 文件名称格式

Functions

This section is empty.

Types

type FileWriter

type FileWriter struct {
	FilenameFunc func(*FileWriter) string
	// contains filtered or unexported fields
}

FileWriter 文件写入结构体

func NewFileWriter

func NewFileWriter(path, suffix string) (*FileWriter, error)

NewFileWriter 实例化FileWriter

func (*FileWriter) Write

func (p *FileWriter) Write(data []byte) (n int, err error)

Write 写入方法

Jump to

Keyboard shortcuts

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