{"id":20270025,"url":"https://github.com/xcraft-inc/goc","last_synced_at":"2026-05-14T05:38:18.292Z","repository":{"id":86578412,"uuid":"61476379","full_name":"Xcraft-Inc/goc","owner":"Xcraft-Inc","description":"Wrapper to simulate symlinks on Windows platform by calling a batch script.","archived":false,"fork":false,"pushed_at":"2016-06-19T11:29:47.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-14T05:35:15.741Z","etag":null,"topics":["goc","simulation","symlink","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xcraft-Inc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-19T11:08:51.000Z","updated_at":"2017-04-04T06:33:59.000Z","dependencies_parsed_at":"2023-03-13T19:58:09.462Z","dependency_job_id":null,"html_url":"https://github.com/Xcraft-Inc/goc","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/Xcraft-Inc%2Fgoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xcraft-Inc%2Fgoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xcraft-Inc%2Fgoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xcraft-Inc%2Fgoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xcraft-Inc","download_url":"https://codeload.github.com/Xcraft-Inc/goc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241753145,"owners_count":20014252,"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":["goc","simulation","symlink","windows"],"created_at":"2024-11-14T12:28:31.513Z","updated_at":"2026-05-14T05:38:13.272Z","avatar_url":"https://github.com/Xcraft-Inc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# goc\n\nWrapper to simulate symlinks with executables on Windows platform by calling a batch script.\n\n## Example\n\nCreate a batch file `dir.cmd`.\n\n```batch\n@echo off\n\"c:\\windows\\system32\\dir.exe\" %*\n```\n\nCompile **goc** and rename `goc.exe` to `dir.exe`. Save `dir.exe` alongside `dir.cmd`.\n\nThen you can remove `c:\\windows\\system32` from the `PATH` and use the new directory where is your `dir.exe` file instead.\n\nWhen you call `dir.exe`, it spawns `dir.cmd` by passing arguments and forwarding stdout and stderr pipes.\n\n## Why not just use `dir.cmd`?\n\nBecause you can't spawn `dir` (without suffix) if you have only a `dir.cmd` or `dir.bat` file in the `PATH`. It's necessary to spawn `dir.cmd` explicitly and it can be a problem when you don't have the source code. Then with **goc**, it's possible to spawn with just `dir`.\n\nNote that **goc** is just a very trivial and limited wrapper. For example, stdin is not forwarded.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Xcraft\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcraft-inc%2Fgoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcraft-inc%2Fgoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcraft-inc%2Fgoc/lists"}