2022-11-14 04:39:21 +00:00
|
|
|
# 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
|
|
|
|
|
2023-10-23 19:23:55 +00:00
|
|
|
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-netln
|
2022-11-14 04:39:21 +00:00
|
|
|
|
2023-10-23 19:23:55 +00:00
|
|
|
[![GoDoc](https://godoc.org/sourcecode.social/reiver/go-netln?status.svg)](https://godoc.org/sourcecode.social/reiver/go-netln)
|
2022-11-14 04:39:21 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```go
|
2023-10-23 19:23:55 +00:00
|
|
|
import "sourcecode.social/reiver/go-netln"
|
2022-11-14 04:39:21 +00:00
|
|
|
|
|
|
|
// ...
|
|
|
|
|
|
|
|
var storage strings.Builder
|
|
|
|
var writer io.Writer = &storage
|
|
|
|
|
|
|
|
netln.CopyLine(writer, reader)
|
|
|
|
|
|
|
|
line := storage.String()
|
|
|
|
```
|