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 08353d00b9 initial commits 2022-12-08 12:43:43 -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
copyline.go initial commits 2022-12-08 12:43:43 -08:00
copyline_test.go initial commits 2022-12-08 12:43:43 -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()