Bug#946027: ITP: golang-github-nkovacs-streamquote -- Go package providing a streaming version of strconv.Quote
Package: wnpp
Severity: wishlist
Owner: Anthony Fok <foka@debian.org>
* Package name : golang-github-nkovacs-streamquote
Version : 1.0.0-1
Upstream Author : Nikola Kovacs; The Go Authors
* URL : https://github.com/nkovacs/streamquote
* License : BSD-3-clause
Programming Lang: Go
Description : Go package providing a streaming version of strconv.Quote
This package provides a streaming version of strconv.Quote.
.
It allows you to quote the data in an io.Reader and write it out to an
io.Writer without having to store the entire input and the entire output
in memory.
.
Its primary use case is go.rice (https://github.com/GeertJohan/go.rice)
and similar tools, which need to convert lots of files, some of them
quite large, to go strings.
.
converter := streamquote.New()
converter.Convert(inputfile, outfile)
.
Unlike strconv.Quote, it does not add quotes around the output.
Rationale:
Needed for upgrading golang-github-geertjohan-go.rice to 1.0.0,
which in turn is needed by golang-github-alecthomas-chroma 0.6.8,
which in turn is needed by hugo 0.59.0 and up.
Reply to: