MCPcopy
hub / github.com/shadow1ng/fscan / JSONWriter

Struct JSONWriter

common/output/writers.go:425–432  ·  view source on GitHub ↗

============================================================================= JSONWriter - JSON格式写入器 ============================================================================= JSONWriter JSON格式写入器(分类去重,输出完整JSON) 双写机制:内存分类缓冲 + 实时NDJSON备份

Source from the content-addressed store, hash-verified

423// JSONWriter JSON格式写入器(分类去重,输出完整JSON)
424// 双写机制:内存分类缓冲 + 实时NDJSON备份
425type JSONWriter struct {
426 file *os.File
427 mu sync.Mutex
428 closed bool
429 buffer *ResultBuffer
430 realtimeFile *os.File // 实时备份文件(NDJSON格式)
431 realtimePath string // 实时备份文件路径
432}
433
434// JSONOutput JSON输出结构
435type JSONOutput struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected