{"id":24298263,"url":"https://github.com/goports/go.js","last_synced_at":"2026-04-12T14:44:43.130Z","repository":{"id":267779479,"uuid":"902327719","full_name":"GoPorts/Go.js","owner":"GoPorts","description":"⚙️⌨️ Go.js is a tool for Go written in TypeScript, Go.js is a quick and simple way to code Go with simple words ","archived":false,"fork":false,"pushed_at":"2024-12-14T13:14:11.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T20:58:09.221Z","etag":null,"topics":["go","golang","javascript","tools","typescript","useful"],"latest_commit_sha":null,"homepage":"","language":null,"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/GoPorts.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":"2024-12-12T10:58:16.000Z","updated_at":"2024-12-14T13:14:15.000Z","dependencies_parsed_at":"2024-12-12T12:20:08.551Z","dependency_job_id":"1a0af91d-1d74-4145-9297-35c7e61b0980","html_url":"https://github.com/GoPorts/Go.js","commit_stats":null,"previous_names":["goports/go.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoPorts%2FGo.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoPorts%2FGo.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoPorts%2FGo.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoPorts%2FGo.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoPorts","download_url":"https://codeload.github.com/GoPorts/Go.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242186956,"owners_count":20086212,"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":["go","golang","javascript","tools","typescript","useful"],"created_at":"2025-01-16T20:54:42.073Z","updated_at":"2025-12-31T00:55:45.141Z","avatar_url":"https://github.com/GoPorts.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![Easy to write, Fast Performance](https://github.com/user-attachments/assets/1be46de0-f76e-40b4-8e9b-7bf7a10eb161)\n\n[![Download zip](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge\u0026logo=typescript\u0026logoColor=white \"Download Zip\")](https://github.com/sebastian-sestaliuc/Go.js/releases/tag/v1) \n\u003cbr /\u003e \u003cbr /\u003e\n [![Download zip](https://img.shields.io/badge/Code-green)](https://github.com/GoPorts/Go.js#-code-copy-paste) \u003cbr /\u003e \n\u003cbr /\u003e\n# What is Go.js? \u003cbr /\u003e\n**Go.js is still in beta, thus it can give you code that dosent work, be aware.** \u003cbr /\u003e \u003cbr /\u003e\nGo.js is a JavaScript/TypeScript code that converts simple words into GO code. \u003cbr /\u003e\nGo.js is still under development. \u003cbr /\u003e\nyou also must know that your antivirus might get trigget of the js code, if it does download the .txt file insted, \u003cbr /\u003e\nmore info by scrolling down \u003cbr /\u003e \u003cbr /\u003e\n\n\u003e [!WARNING]\n\u003e Use it in DevTools since its code has prompts in it which your code editor might not support, \u003cbr /\u003e\n\u003e thus your code editor will give you an error! \u003cbr /\u003e\n\n\u003cbr /\u003e\n \u003chr\u003e\n \n • How to setup \u003cbr /\u003e\n \n‎ ‎  ◦ after you've open Go.js, you can put some words in your coding space (go = ´´). \u003cbr /\u003e\n‎ ‎  ◦ you only need a JavaScript or TypeScript compiler, and the your done! \u003cbr /\u003e\n\n • All keywords for Go.js \u003cbr /\u003e\n \n‎ ‎  ◦ start, by typing start it'll create the package and import. \u003cbr /\u003e\n‎ ‎  ◦ print , we know what print does \u003cbr /\u003e\n‎ ‎  ◦ input , we also know what input does \u003cbr /\u003e\n‎ ‎  ◦ v!, to create a variable you do this ´v! hello = \"world\"´.\u003cbr /\u003e\n‎ ‎  ◦ if, if statement is more simpler with Go.js, this is how, if var is val then{}.\u003cbr /\u003e\n\n • Why make this? \u003cbr /\u003e\n \n‎ ‎  ◦ since Go is in high demand, its also in high value. \u003cbr /\u003e\n‎ ‎  ◦ for people that can code in JavaScript but not Go. \u003cbr /\u003e\n‎ ‎  ◦ and if you use AI to convert the code, you might result in bad code. \u003cbr /\u003e\n\n • Other info \u003cbr /\u003e\n \n‎‎   ◦ Go.js is source free, which means that other people can use it. \u003cbr /\u003e\n‎‎   ◦ Go.js is still under development. \u003cbr /\u003e\n‎‎   ◦ Go.js can only be used on DevTools (Inspect \u003e Console), since its code also has prompts.\n\n# • Code, copy paste\n [![Download zip](https://img.shields.io/badge/Version-v1.1.1-blue)](https://github.com/GoPorts) \u003cbr /\u003e \n \n```js\nlet go = `\nstart\nprint Hello, World!\nv! name = input\nif name is John then\n    v! age = input\n    if age is 30 then\n        fmt.Println(\"John is 30!\")\n    else {\n        fmt.Println(\"John is not 30!\")\n    }\nelse {\n    fmt.Println(\"Not John!\")\n}`;\n`;\n// example up here! /\\\nlet gocode;\n\ngocode = \"\";\nif (go.includes(\"start\")) {\n    gocode += `package main\\n\\nimport \"fmt\"\\n\\nfunc main(){\\n`;\n\n    if (go.includes(\"print \")) {\n        const textToPrint = go.split(\"print \")[1].split(\"\\n\")[0].trim();\n        gocode += `    fmt.Println(\"${textToPrint}\")\\n`;\n    }\n\n    if (go.includes(\"v! \")) {\n        const variableLine = go.split(\"v! \")[1].split(\"\\n\")[0].trim();\n        const [varName, operation] = variableLine.split(\"=\").map(s =\u003e s.trim());\n        if (operation === \"input\") {\n            gocode += `    var ${varName} string\\n    fmt.Scanln(\u0026${varName})\\n`;\n        }\n    }\n\n    if (go.includes(\"if \")) {\n        const conditionLine = go.split(\"if \")[1].split(\"then\")[0].trim();\n        const [variable, comparison] = conditionLine.split(\"is\").map(s =\u003e s.trim());\n        gocode += `    if ${variable} == \"${comparison}\" {\\n`;\n\n        const thenContent = go.split(\"then\")[1].split(\"else\")[0].trim();\n        if (thenContent) {\n            // Handle variables and inputs inside 'then'\n            if (thenContent.includes(\"v! \")) {\n                const variableLine = thenContent.split(\"v! \")[1].split(\"\\n\")[0].trim();\n                const [varName, operation] = variableLine.split(\"=\").map(s =\u003e s.trim());\n                if (operation === \"input\") {\n                    gocode += `        var ${varName} string\\n        fmt.Scanln(\u0026${varName})\\n`;\n                }\n            }\n            // Add the actual statements inside 'then'\n            gocode += `        ${thenContent}\\n`;\n        }\n\n        const elseContent = go.split(\"else {\")[1].split(\"}\")[0].trim();\n        if (elseContent) {\n            gocode += `    } else {\\n`;\n\n            // Handle variables and inputs inside 'else'\n            if (elseContent.includes(\"v! \")) {\n                const variableLine = elseContent.split(\"v! \")[1].split(\"\\n\")[0].trim();\n                const [varName, operation] = variableLine.split(\"=\").map(s =\u003e s.trim());\n                if (operation === \"input\") {\n                    gocode += `        var ${varName} string\\n        fmt.Scanln(\u0026${varName})\\n`;\n                }\n            }\n            gocode += `        ${elseContent}\\n    }\\n`;\n        } else {\n            gocode += `    }\\n`;\n        }\n    }\n\n    gocode += `}\\n`;\n}\n\nconsole.log(gocode);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoports%2Fgo.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoports%2Fgo.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoports%2Fgo.js/lists"}