Package eol implements tools for working with end-of-line, for the Go programming language.
Go to file
Charles Iliya Krempeaux 1fc5dc884c initial commits 2023-11-27 06:47:07 -08:00
LICENSE initial commits 2023-11-27 06:46:40 -08:00
README.md initial commits 2023-11-27 06:46:40 -08:00
consts.go initial commits 2023-11-27 06:47:07 -08:00

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
  • "\r" // carriage-return
  • "\r\n" // carriage-return, line-feed
  • "\u0085" // new-line
  • "\u2028" // line-separator

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-eol

GoDoc

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