streamquote – github.com/nkovacs/streamquote Index | Files

package streamquote

import "github.com/nkovacs/streamquote"

Package streamquote implements a streaming version of strconv.Quote.

Index

Types

type Converter

type Converter interface {
	// Convert converts the data in "in", writing it to "out".
	// It uses Go escape sequences (\t, \n, \xFF, \u0100) for control characters
	// and non-printable characters as defined by strconv.IsPrint.
	// It is not safe for concurrent use.
	Convert(in io.Reader, out io.Writer) (int, error)
}

Converter converts data by escaping control characters and non-printable characters using Go escape sequences.

func New

func New() Converter

New returns a new Converter.

Source Files

streamquote.go

Version
v1.1.0 (latest)
Published
Aug 7, 2023
Platform
js/wasm
Imports
3 packages
Last checked
1 week ago

Tools for package owners.