{"id":13990810,"url":"https://github.com/zackradisic/go-playground-wasm","last_synced_at":"2025-04-13T18:40:20.720Z","repository":{"id":114944584,"uuid":"409761363","full_name":"zackradisic/go-playground-wasm","owner":"zackradisic","description":"A version of play.golang.org that runs completely in the browser","archived":false,"fork":false,"pushed_at":"2021-09-26T20:27:15.000Z","size":1419,"stargazers_count":184,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T09:21:28.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"go-playground-wasm.vercel.app","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/zackradisic.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}},"created_at":"2021-09-23T22:32:38.000Z","updated_at":"2025-01-14T05:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"731a5daa-45b6-4697-a949-427251ed9ddb","html_url":"https://github.com/zackradisic/go-playground-wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fgo-playground-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fgo-playground-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fgo-playground-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackradisic%2Fgo-playground-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackradisic","download_url":"https://codeload.github.com/zackradisic/go-playground-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248764162,"owners_count":21158035,"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-08-09T13:03:17.308Z","updated_at":"2025-04-13T18:40:20.697Z","avatar_url":"https://github.com/zackradisic.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Go Playground WASM\n\nThis is an experiment in trying to make a version of play.golang.org that runs completely in the browser by \ncompiling [goscript](https://github.com/oxfeeefeee/goscript) (by [oxfeeefeee](https://github.com/oxfeeefeee)) to WASM.\n\nMost of Go's language features are supported, notably channels/goroutines/select.\n\n## Building and running\nThe wasm binary is pre-compiled and available in the `public/` directory so you should be \ngood to go to if you just want to run the Next.js server. You will need to install node and yarn of course.\n```\n# Run in development mode\nyarn dev\n\n# Build and serve optimized production build\nyarn build\nyarn start\n```\n\nIf you want to play around with modifying the wasm build, `cd` into `goscript/wasm` and\nyou can mess around with the code. When you want to build the wasm binary run:\n```\n# Build wasm\ncargo build --release --target=wasm32-wasi\n\n# Copy into Next.js's public folder\ncp target/wasm32-wasi/release/wasm.wasm ../public\n```\n\n\n### Disclaimer\ngoscript only makes guarantees that the syntax will be identical to Go's, there are implementation details that will cause discrepancies from running actual Go code with the actual Go compiler.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackradisic%2Fgo-playground-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackradisic%2Fgo-playground-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackradisic%2Fgo-playground-wasm/lists"}