oneliner

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 4 Imported by: 1

README

see: https://pkg.go.dev/github.com/payfazz/go-oneliner

Documentation

Overview

Package oneliner for wrapping Write call

all write will be converted to single JSON string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneLiner

type OneLiner struct {
	// contains filtered or unexported fields
}

OneLiner is wrapper type return by Wrap

func Wrap

func Wrap(w io.Writer) OneLiner

Wrap inner, so that every write will be converted to one line string

func (OneLiner) Write

func (o OneLiner) Write(p []byte) (n int, err error)

Write will format p into JSON string and write it

Jump to

Keyboard shortcuts

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