Skip to content

Package iolsep provides a limited-reader that reads a single line from an io.Reader, for the Go programming language.

License

Notifications You must be signed in to change notification settings

reiver/go-iolsep

Repository files navigation

go-iolsep

Package iolsep provides a limited-reader that reads a single line from an io.Reader, for the Go programming language.

A line is terminated by one of these:

  • "\n"
  • "\u0085"
  • "\u2028"
  • "\u2029"
  • io.EOF

Note that "\r" (which would include "\r\n" and "\n\r") is intentionally missing from this list. But it still works out.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-iolsep

GoDoc

Usage

var readcloser io.ReadCloser = iolsep.NewLineReadCloser(reader)

Name

The “lsep” (in the package name) is short for “line separator”.

Import

To import package iolsep use import code like the follownig:

import "github.com/reiver/go-iolsep"

Installation

To install package iolsep do the following:

GOPROXY=direct go get https://github.com/reiver/go-iolsep

Author

Package iolsep was written by Charles Iliya Krempeaux

About

Package iolsep provides a limited-reader that reads a single line from an io.Reader, for the Go programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages