{"id":18592012,"url":"https://github.com/maolonglong/go-editline","last_synced_at":"2025-07-04T04:32:44.163Z","repository":{"id":196773148,"uuid":"697099258","full_name":"maolonglong/go-editline","owner":"maolonglong","description":"Go bindings for the editline.","archived":false,"fork":false,"pushed_at":"2023-09-27T03:55:47.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T18:39:16.894Z","etag":null,"topics":["auto-completion","cgo","editline","go","golang","readline"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maolonglong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-27T03:52:08.000Z","updated_at":"2023-09-27T16:40:52.000Z","dependencies_parsed_at":"2023-09-27T13:49:26.979Z","dependency_job_id":null,"html_url":"https://github.com/maolonglong/go-editline","commit_stats":null,"previous_names":["maolonglong/go-editline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maolonglong/go-editline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maolonglong%2Fgo-editline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maolonglong%2Fgo-editline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maolonglong%2Fgo-editline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maolonglong%2Fgo-editline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maolonglong","download_url":"https://codeload.github.com/maolonglong/go-editline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maolonglong%2Fgo-editline/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263446004,"owners_count":23467655,"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":["auto-completion","cgo","editline","go","golang","readline"],"created_at":"2024-11-07T01:06:18.770Z","updated_at":"2025-07-04T04:32:44.090Z","avatar_url":"https://github.com/maolonglong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-editline\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/maolonglong/go-editline)](https://pkg.go.dev/github.com/maolonglong/go-editline)\n\nGo bindings for the [editline](https://github.com/troglobit/editline).\n\n## Installation\n\nThis library depends on editline and requires it to be installed beforehand. You can refer to the following link for instructions on how to build and install editline: \u003chttps://github.com/troglobit/editline#build--install\u003e.\n\n```bash\ngo get github.com/maolonglong/go-editline\n```\n\n## Usage\n\nSome useful hints on how to use the library is available in the [examples/](./examples/) directory.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\n\t\"github.com/maolonglong/go-editline\"\n)\n\nfunc main() {\n\tdefer editline.Uninitialize()\n\n\tfor {\n\t\tline, err := editline.ReadLine(\"\u003e \")\n\t\tif err != nil {\n\t\t\tif err == io.EOF {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tpanic(err)\n\t\t}\n\n\t\tfmt.Println(line)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaolonglong%2Fgo-editline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaolonglong%2Fgo-editline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaolonglong%2Fgo-editline/lists"}