{"id":17930167,"url":"https://github.com/eternal-flame-ad/go-termux","last_synced_at":"2026-03-08T23:32:15.755Z","repository":{"id":34841731,"uuid":"157653204","full_name":"eternal-flame-AD/go-termux","owner":"eternal-flame-AD","description":"termux api wrappers for golang","archived":false,"fork":false,"pushed_at":"2022-03-20T20:22:54.000Z","size":35,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T23:49:53.612Z","etag":null,"topics":["android","android-api","golang","termux","termux-api"],"latest_commit_sha":null,"homepage":null,"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/eternal-flame-AD.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}},"created_at":"2018-11-15T04:42:23.000Z","updated_at":"2025-07-21T13:16:29.000Z","dependencies_parsed_at":"2022-08-08T02:01:14.548Z","dependency_job_id":null,"html_url":"https://github.com/eternal-flame-AD/go-termux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eternal-flame-AD/go-termux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fgo-termux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fgo-termux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fgo-termux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fgo-termux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eternal-flame-AD","download_url":"https://codeload.github.com/eternal-flame-AD/go-termux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternal-flame-AD%2Fgo-termux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273556209,"owners_count":25126520,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","android-api","golang","termux","termux-api"],"created_at":"2024-10-28T21:12:14.253Z","updated_at":"2026-03-08T23:32:15.722Z","avatar_url":"https://github.com/eternal-flame-AD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-termux\n\n[![API Documentation](https://img.shields.io/badge/api-GoDoc-blue.svg?style=flat-square)](https://godoc.org/github.com/eternal-flame-AD/go-termux)\n\nGolang wrapper for termux:API. This package calls termux:API methods directly so that this package would work without termux-api package installed.\n\n## Examples\n\n### Acquires the current battery percentage\n\n```golang\npackage main\n\nimport (\n        \"fmt\"\n\n        tm \"github.com/eternal-flame-AD/go-termux\"\n)\n\nfunc main() {\n        if stat, err := tm.BatteryStatus(); err != nil {\n                panic(err)\n        } else {\n                fmt.Printf(\"The current battery percentage is %d%%.\\n\", stat.Percentage)\n        }\n}\n```\n\n### Sets current clipboard content\n```golang\npackage main\n\nimport tm \"github.com/eternal-flame-AD/go-termux\"\n\nfunc main() {\n    if err := tm.ClipboardSet(\"ummmm\"); err != nil {\n        panic(err)\n    }\n}\n```\n\n### Displays a short toast\n```golang\npackage main\n\nimport (\n        tm \"github.com/eternal-flame-AD/go-termux\"\n)\n\nfunc main() {\n        if err := tm.Toast(\"Hello World!\", tm.ToastOption{\n                FontColor: \"#FF0000\",\n                Position:  tm.Top,\n                Short:     true,\n                BGColor:   \"#00FF00\",\n        }); err != nil {\n                panic(err)\n        }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternal-flame-ad%2Fgo-termux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feternal-flame-ad%2Fgo-termux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternal-flame-ad%2Fgo-termux/lists"}