{"id":18555756,"url":"https://github.com/infinitybotlist/gostd.js","last_synced_at":"2025-05-15T13:10:29.555Z","repository":{"id":206470785,"uuid":"717008175","full_name":"InfinityBotList/gostd.js","owner":"InfinityBotList","description":"(Parts of the) GO stdlib in javascript","archived":false,"fork":false,"pushed_at":"2024-05-05T11:25:53.000Z","size":1243,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T11:31:41.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/InfinityBotList.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}},"created_at":"2023-11-10T10:52:57.000Z","updated_at":"2024-11-03T21:53:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b624227f-f977-40c6-9385-981c021b0166","html_url":"https://github.com/InfinityBotList/gostd.js","commit_stats":null,"previous_names":["infinitybotlist/gostd.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fgostd.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fgostd.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fgostd.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fgostd.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfinityBotList","download_url":"https://codeload.github.com/InfinityBotList/gostd.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346626,"owners_count":22055809,"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-11-06T21:27:52.535Z","updated_at":"2025-05-15T13:10:29.536Z","avatar_url":"https://github.com/InfinityBotList.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gostd\n\nGostd is a port of the unique parts Go standard library to JavaScript.\n\nNote that this is a work in progress and is not ready for production use. Also note that this is not a complete port of the Go standard library, only the parts that are unique to Go and do not have easily available or as high-quality alternatives in JavaScript.\n\n## Ported Packages\n\n- `io` (excluding `Pipe` which is TODO)\n- `bufio` (only `Reader`)\n- `bytes` (only `IndexByte()` and `Clone()` that is needed for bufio, for all sakes and purposes, unimplemented)\n- `compress/lzw` (only reading support. Writing support is a planned TODO)\n- `sync` (only `Mutex` and `RWMutex`)\n\n## Go porting rules\n\n- `panic` = `throw new Error()`\n- `byte` = `number`\n- `[]byte` = `[]number` or `Uint8Array`\n- `make([]byte, n)` = `new Uint8Array(n)`\n- `copy([]byte)` = `uint8Copy`\n- `[]byte(string)` = `bytesFromString`\n- `array[i:]` = `array.subarray(i)`\n- `array[:j]` = `array.subarray(0, j)`\n- `array[i:j]` = `array.subarray(i, j)`\n- `(1\u003c\u003c63)-1` = `Number.MAX_SAFE_INTEGER` (JS doesnt support numbers larger than this)\n\n### Limitations\n\n- Single-threaded (equivalent to `GOMAXPROCS=1`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fgostd.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitybotlist%2Fgostd.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fgostd.js/lists"}