iojson

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

iojson are utilities for reading and writing JSON IO from a command line interface perspective

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLine

func WriteLine(w io.Writer, obj any) error

WriteLine writes obj as compact JSON (no indent) to w. Intended for JSON lines output where multiple objects are written sequentially.

Types

type FileReader

type FileReader[T any] struct {
	// contains filtered or unexported fields
}

func (*FileReader[T]) Flag

func (fr *FileReader[T]) Flag() *cli.StringFlag

func (*FileReader[T]) Read

func (fr *FileReader[T]) Read() (T, error)

Jump to

Keyboard shortcuts

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