Skip to content
Sections
>> Trisquel >> 套件 >> nabia >> devel >> golang-github-nkovacs-streamquote-dev
nabia  ] [  aramo  ]
[ 原始碼: golang-github-nkovacs-streamquote  ]

套件: golang-github-nkovacs-streamquote-dev (1.0.0-2)

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.

下載 golang-github-nkovacs-streamquote-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 5.0 kB23 kB [文件列表]