fileOutput

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx added in v0.2.0

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

func NewFileOutputCtx added in v0.2.0

func NewFileOutputCtx(outSetting *fuzzTypes.OutputSetting, _ int) (*Ctx, error)

NewFileOutputCtx 初始化文件输出,返回文件输出上下文

func (*Ctx) Close added in v0.2.0

func (c *Ctx) Close() error

Close 关闭文件输出上下文,注意:此方法不保证协程安全,调用时应该自行确定不会再调用Output方法以及此方法不会并发调用

func (*Ctx) GetLogFileName added in v0.2.0

func (c *Ctx) GetLogFileName() string

func (*Ctx) GetOutputFileName added in v0.2.0

func (c *Ctx) GetOutputFileName() string

func (*Ctx) Log added in v0.2.0

func (c *Ctx) Log(log *outputable.Log) error

Log 写一条日志,会自动创建日志文件

func (*Ctx) Output added in v0.2.0

func (c *Ctx) Output(obj *outputable.OutObj) error

Output 向特定文件输出结果,允许多个Output并发调用,但是不允许Output与Close之间并发

Jump to

Keyboard shortcuts

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