package json

import "go.cryptoscope.co/luigi/json"

Index

Functions

func NewSink

func NewSink(wc io.WriteCloser) luigi.Sink

NewSink returns a new sink that writes incoming data to the passed WriteCloser in JSON format

func NewSource

func NewSource(r io.Reader, t interface{}) luigi.Source

NewSource returns a new source that emits values of the pointer type as t read from the Reader in JSON format.

Source Files

json.go

Version
v0.3.6 (latest)
Published
Oct 13, 2021
Platform
linux/amd64
Imports
5 packages
Last checked
4 days ago

Tools for package owners.