{"id":13712313,"url":"https://github.com/nxadm/tail","last_synced_at":"2025-05-14T21:03:49.993Z","repository":{"id":38099558,"uuid":"154142786","full_name":"nxadm/tail","owner":"nxadm","description":"[Revamped] Go package for reading from continuously updated files (tail -f)","archived":false,"fork":false,"pushed_at":"2024-07-24T11:45:20.000Z","size":3991,"stargazers_count":364,"open_issues_count":28,"forks_count":70,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T16:13:44.089Z","etag":null,"topics":["go","golang","logging","monitoring","tail","trigger","watcher"],"latest_commit_sha":null,"homepage":"","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/nxadm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-22T12:47:59.000Z","updated_at":"2025-03-31T08:37:29.000Z","dependencies_parsed_at":"2024-06-18T12:23:05.031Z","dependency_job_id":"cd0b5d20-f2e0-4853-88c1-a154905d6d9a","html_url":"https://github.com/nxadm/tail","commit_stats":{"total_commits":292,"total_committers":48,"mean_commits":6.083333333333333,"dds":0.6678082191780822,"last_synced_commit":"ba755e4d73b6b3e768ccb943df8d4656cdd971fc"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxadm%2Ftail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxadm%2Ftail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxadm%2Ftail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxadm%2Ftail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nxadm","download_url":"https://codeload.github.com/nxadm/tail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351682,"owners_count":21089322,"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":["go","golang","logging","monitoring","tail","trigger","watcher"],"created_at":"2024-08-02T23:01:17.064Z","updated_at":"2025-04-11T06:18:58.389Z","avatar_url":"https://github.com/nxadm.png","language":"Go","readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/nxadm/tail.svg)](https://pkg.go.dev/github.com/nxadm/tail#section-documentation)\n![ci](https://github.com/nxadm/tail/workflows/ci/badge.svg)\n[![FreeBSD](https://api.cirrus-ci.com/github/nxadm/tail.svg)](https://cirrus-ci.com/github/nxadm/tail)\n# tail functionality in Go\n\nnxadm/tail provides a Go library that emulates the features of the BSD `tail`\nprogram. The library comes with full support for truncation/move detection as\nit is designed to work with log rotation tools. The library works on all\noperating systems supported by Go, including POSIX systems like Linux, *BSD,\nMacOS, and MS Windows. Go 1.12 is the oldest compiler release supported.\n\nA simple example:\n\n```Go\n// Create a tail\nt, err := tail.TailFile(\n\t\"/var/log/nginx.log\", tail.Config{Follow: true, ReOpen: true})\nif err != nil {\n    panic(err)\n}\n\n// Print the text of each received line\nfor line := range t.Lines {\n    fmt.Println(line.Text)\n}\n```\n\nSee [API documentation](https://pkg.go.dev/github.com/nxadm/tail#section-documentation).\n\n## Installing\n\n    go get github.com/nxadm/tail/...\n\n## History\n\nThis project is an active, drop-in replacement for the\n[abandoned](https://en.wikipedia.org/wiki/HPE_Helion) Go tail library at\n[hpcloud](https://github.com/hpcloud/tail). Next to\n[addressing open issues/PRs of the original project](https://github.com/nxadm/tail/issues/6),\nnxadm/tail continues the development by keeping up to date with the Go toolchain\n(e.g. go modules) and dependencies, completing the documentation, adding features\nand fixing bugs.\n\n## Examples\nExamples, e.g. used to debug an issue, are kept in the [examples directory](/examples).\n","funding_links":[],"categories":["Repositories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxadm%2Ftail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxadm%2Ftail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxadm%2Ftail/lists"}