Charles Iliya Krempeaux 230937cb2e | ||
---|---|---|
cr | ||
crlf | ||
lf | ||
lfcr | ||
ls | ||
nel | ||
LICENSE | ||
README.md | ||
circumstance.go | ||
errors.go | ||
go.mod | ||
go.sum | ||
notfound.go | ||
problemreadingrune.go | ||
problemunreadingrune.go | ||
readcr.go | ||
readcr_test.go | ||
readcrlf.go | ||
readcrlf_test.go | ||
readeol.go | ||
readeol_test.go | ||
readlf.go | ||
readlf_test.go | ||
readlfcr.go | ||
readlfcr_test.go | ||
readls.go | ||
readls_test.go | ||
readnel.go | ||
readnel_test.go | ||
readthiseol.go | ||
readthiseol_test.go | ||
readthisrune.go | ||
readthisrune_test.go | ||
unrecognizedeol.go |
README.md
go-eol
Package eol implements tools for working with end-of-line, for the Go programming language.
The end-of-line sequences it supports is:
"\n" // line-feed (LF)
"\n\r" // line-feed (LF), carriage-return (CR)
"\r" // carriage-return (CR)
"\r\n" // carriage-return (CR), line-feed (LF)
"\u0085" // next-line (NEL)
"\u2028" // line-separator (LS)
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-eol
Example
Here is an example:
import "sourcecode.social/reiver/go-eol"
// ...
eodofline, size, err := eol.ReadEOL(runereader)
if nil != err {
return err
}
Import
To import package eol use import
code like the follownig:
import "sourcecode.social/reiver/go-eol"
Installation
To install package eol do the following:
GOPROXY=direct go get https://sourcecode.social/reiver/go-eol
Author
Package eol was written by Charles Iliya Krempeaux