go-netln provides tools for parsing "net lines", for the Go programming language — i.e., lines that end with a "\r\n".
Go to file
Charles Iliya Krempeaux 5a9076dd18 initial commits 2022-11-13 20:49:36 -08:00
LICENSE initial commits 2022-11-13 20:39:21 -08:00
README.md initial commits 2022-11-13 20:39:21 -08:00
errors.go initial commits 2022-11-13 20:41:07 -08:00
go.mod initial commits 2022-11-13 20:40:48 -08:00
go.sum initial commits 2022-11-13 20:40:48 -08:00
readrune.go initial commits 2022-11-13 20:43:14 -08:00
writerune.go initial commits 2022-11-13 20:49:36 -08:00

README.md

go-netln

go-netln provides tools for parsing "net lines", for the Go programming language — i.e., lines that end with a "\r\n".

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-netln

GoDoc

Examples

import "github.com/reiver/go-netln"

// ...

var storage strings.Builder
var writer io.Writer = &storage

netln.CopyLine(writer, reader)

line := storage.String()