streamutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileWrite = iota
	FileAppend
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileMode

type FileMode uint8

type NdjsonInput

type NdjsonInput[T any] interface {
	stream.Producer[T]
}

func NewNdjsonInput

func NewNdjsonInput[T any](path string) NdjsonInput[T]

type NdjsonOutput

type NdjsonOutput[T any] interface {
	stream.Consumer[T]
	Run(func(T)) error
}

func NewNdjsonOutput

func NewNdjsonOutput[T any](path string, mode FileMode) NdjsonOutput[T]

Jump to

Keyboard shortcuts

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