Discover Packages
github.com/plexusone/agentpair
pkg
jsonl
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package jsonl provides utilities for reading and writing JSONL (JSON Lines) files.
AppendOne appends a single JSON object to a JSONL file.
ReadAll reads all objects from a JSONL file into a slice.
The factory function creates new instances for each line.
type FileWriter struct {
*Writer
}
FileWriter writes JSONL to a file with append support.
OpenFile opens or creates a JSONL file for appending.
Close closes the underlying file.
Sync flushes the file to disk.
Reader reads JSON objects from a newline-delimited JSON stream.
NewReader creates a new JSONL reader.
Decode decodes the next JSON object into v. Returns io.EOF when done.
Err returns any error encountered during scanning.
Next returns the next line as raw JSON bytes. Returns nil when done or on error.
Writer writes JSON objects as newline-delimited JSON.
NewWriter creates a new JSONL writer.
Write encodes and writes a single JSON object followed by a newline.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.