Documentation
¶
Overview ¶
Package json 提供写入 JSON 文件的 Sink
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// FilePath 输出文件路径
FilePath string `json:"file_path"`
// Format 格式: "lines" 或 "array"
Format string `json:"format"`
// Indent 缩进字符串
Indent string `json:"indent"`
// Append 是否追加模式
Append bool `json:"append"`
}
Config Sink 的配置
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink 将数据写入 JSON 文件,支持 JSON Lines 和 JSON 数组格式
type WriterSink ¶
type WriterSink struct {
// contains filtered or unexported fields
}
WriterSink 通用的 JSON Writer Sink
Click to show internal directories.
Click to hide internal directories.