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 ed00812ac3 github.com/reiver/go-netln -> sourcecode.social/reiver/go-netln 2023-10-23 12:23:55 -07:00
LICENSE initial commits 2022-11-13 20:39:21 -08:00
README.md github.com/reiver/go-netln -> sourcecode.social/reiver/go-netln 2023-10-23 12:23:55 -07:00
copyline.go initial commits 2022-12-08 12:43:43 -08:00
copyline_test.go github.com/reiver/go-netln -> sourcecode.social/reiver/go-netln 2023-10-23 12:23:55 -07:00
errors.go github.com/reiver/go-fck -> sourcecode.social/reiver/go-erorr 2023-10-23 12:06:12 -07:00
go.mod github.com/reiver/go-netln -> sourcecode.social/reiver/go-netln 2023-10-23 12:23:55 -07:00
go.sum github.com/reiver/go-utf8 -> sourcecode.social/reiver/go-utf8 2023-10-23 12:09:45 -07:00
readrune.go github.com/reiver/go-utf8 -> sourcecode.social/reiver/go-utf8 2023-10-23 12:09:45 -07:00
writerune.go github.com/reiver/go-utf8 -> sourcecode.social/reiver/go-utf8 2023-10-23 12:09:45 -07: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/sourcecode.social/reiver/go-netln

GoDoc

Examples

import "sourcecode.social/reiver/go-netln"

// ...

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

netln.CopyLine(writer, reader)

line := storage.String()