{"id":15393875,"url":"https://github.com/mitchellh/go-linereader","last_synced_at":"2025-04-06T21:16:48.248Z","repository":{"id":21502046,"uuid":"24821015","full_name":"mitchellh/go-linereader","owner":"mitchellh","description":"Golang package that reads lines from an io.Reader and puts them onto a channel.","archived":false,"fork":false,"pushed_at":"2019-02-13T21:33:13.000Z","size":4,"stargazers_count":67,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T19:11:40.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchellh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-05T17:11:03.000Z","updated_at":"2024-11-09T19:23:11.000Z","dependencies_parsed_at":"2022-07-23T09:46:55.194Z","dependency_job_id":null,"html_url":"https://github.com/mitchellh/go-linereader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-linereader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-linereader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-linereader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fgo-linereader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/go-linereader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247550693,"owners_count":20956987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T15:20:38.700Z","updated_at":"2025-04-06T21:16:48.201Z","avatar_url":"https://github.com/mitchellh.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-linereader\n\n`go-linereader` (Golang package: `linereader`) is a package for Go that\nbreaks up the input from an io.Reader into multiple lines. It is\na lot like `bufio.Scanner`, except you can specify timeouts that will push\n\"lines\" through after a certain amount of time. This lets you read lines,\nbut return any data if a line isn't updated for some time.\n\n## Installation and Usage\n\nInstall using `go get github.com/mitchellh/go-linereader`.\n\nFull documentation is available at\nhttp://godoc.org/github.com/mitchellh/go-linereader\n\nBelow is an example of its usage ignoring errors:\n\n```go\n// Assume r is some set io.Reader. Perhaps a file, network, anything.\nvar r io.Reader\n\n// Initialize the line reader\nlr := linereader.New(r)\n\n// Get all the lines\nfor line := \u003c-lr.Ch {\n\t// Do something with the line. This line will have the line separator\n\t// removed.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgo-linereader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Fgo-linereader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fgo-linereader/lists"}