{"id":19721333,"url":"https://github.com/meinside/morse-go","last_synced_at":"2026-02-18T16:31:51.272Z","repository":{"id":144207064,"uuid":"245107275","full_name":"meinside/morse-go","owner":"meinside","description":"A golang library for encoding/decodeing morse codes","archived":false,"fork":false,"pushed_at":"2024-06-26T23:47:55.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T04:29:49.568Z","etag":null,"topics":["golang","morse-code"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meinside.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-03-05T08:25:32.000Z","updated_at":"2025-08-06T11:02:03.000Z","dependencies_parsed_at":"2024-06-20T17:34:44.258Z","dependency_job_id":"6726d95f-487e-41e2-ba23-25c6d2529fd4","html_url":"https://github.com/meinside/morse-go","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/meinside/morse-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Fmorse-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Fmorse-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Fmorse-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Fmorse-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meinside","download_url":"https://codeload.github.com/meinside/morse-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Fmorse-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29585549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","morse-code"],"created_at":"2024-11-11T23:14:01.331Z","updated_at":"2026-02-18T16:31:51.255Z","avatar_url":"https://github.com/meinside.png","language":"Go","readme":"# morse-go\n\nA golang library for morse code encoding/decoding.\n\n## how to get\n\n```bash\n$ go get -u github.com/meinside/morse-go\n```\n\n## how to use\n\n### sample application\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/meinside/morse-go\"\n)\n\nconst (\n\tphrase = \"Testing morse code...\"\n)\n\nfunc main() {\n\tlog.Printf(\"Will encode: %s\", phrase)\n\n\t// escape before encoding\n\tescaped := morse.Escape(phrase)\n\n\tlog.Printf(\"Escaped: %s\", escaped)\n\n\t// encode,\n\tencoded, _ := morse.Encode(escaped)\n\n\tlog.Printf(\"Encoded: %s\", encoded)\n\n\t// decode,\n\tdecoded, _ := morse.Decode(encoded)\n\n\tlog.Printf(\"Decoded: %s\", decoded)\n\n\t// build codes from durations\n\tcodes := []morse.Code{\n\t\tmorse.CodeFromDurations(morse.Dit, morse.Dit, morse.Dit),\n\t\tmorse.Space,\n\t\tmorse.CodeFromDurations(morse.Dah, morse.Dah, morse.Dah),\n\t\tmorse.Space,\n\t\tmorse.CodeFromDurations(morse.Dit, morse.Dit, morse.Dit),\n\t}\n\n\t// decode codes from durations\n\tdecoded, _ = morse.Decode(codes)\n\n\tlog.Printf(\"Decoded %s to: %s\", codes, decoded)\n}\n\n```\n\nResult:\n\n```\n2020/03/05 17:22:25 Will encode: Testing morse code...\n2020/03/05 17:22:25 Escaped: Testing morse code\n2020/03/05 17:22:25 Encoded: [− • ••• − •• −• −−•   −− −−− •−• ••• •   −•−• −−− −•• •]\n2020/03/05 17:22:25 Decoded: testing morse code\n2020/03/05 17:22:25 Decoded [•••   −−−   •••] to: s o s\n```\n\n## how to test/benchmark\n\n```bash\n$ go test\n$ go test -bench .\n```\n\n## License\n\nMIT\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinside%2Fmorse-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeinside%2Fmorse-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinside%2Fmorse-go/lists"}