{"id":19208982,"url":"https://github.com/carsonslovoka/replace","last_synced_at":"2026-06-10T21:32:21.300Z","repository":{"id":60479670,"uuid":"542933509","full_name":"CarsonSlovoka/replace","owner":"CarsonSlovoka","description":"strings.replaceAll","archived":false,"fork":false,"pushed_at":"2023-02-06T08:29:11.000Z","size":51,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T16:20:36.884Z","etag":null,"topics":["replace","replace-text","taiwan","tool","tools"],"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/CarsonSlovoka.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":"2022-09-29T05:21:47.000Z","updated_at":"2022-09-29T05:35:16.000Z","dependencies_parsed_at":"2024-06-21T10:44:11.232Z","dependency_job_id":"c1b8ec8c-5701-414e-a792-a4afc67b691a","html_url":"https://github.com/CarsonSlovoka/replace","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"004832ed4d8dc4c252d40f090fa43cc14775c9b3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Freplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Freplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Freplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarsonSlovoka%2Freplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarsonSlovoka","download_url":"https://codeload.github.com/CarsonSlovoka/replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280984,"owners_count":19776418,"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":["replace","replace-text","taiwan","tool","tools"],"created_at":"2024-11-09T13:28:39.304Z","updated_at":"2026-06-10T21:32:21.266Z","avatar_url":"https://github.com/CarsonSlovoka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"asset/img/site/favicon.svg\"\u003e\n    \u003cimg alt=\"replace\" src=\"asset/img/site/favicon.svg\" width=\"128\"/\u003e\n  \u003c/a\u003e\u003cbr\u003e\n  \u003ca href=\"http://golang.org\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Made%20with-Go-1f425f.svg\" alt=\"Made with Go\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://pkg.go.dev/github.com/CarsonSlovoka/replace/\"\u003e\n      \u003cimg src=\"https://pkg.go.dev/badge/CarsonSlovoka/replace/v2.svg\" alt=\"Go Reference\"\u003e\n  \u003c/a\u003e\n\n  \u003c!-- \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/CarsonSlovoka/replace?filename=src%2Fgo.mod\" alt=\"Go Version\"\u003e --\u003e\n  \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/CarsonSlovoka/replace?filename=go.mod\" alt=\"Go Version\"\u003e\n\n  \u003ca href=\"https://GitHub.com/CarsonSlovoka/replace/releases/\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/release/CarsonSlovoka/replace\" alt=\"Latest release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CarsonSlovoka/replace/blob/master/LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/CarsonSlovoka/replace.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# replace\n\n字串取代\n\n- [source code](./replace)\n\n## Features\n\n- [可指定要匹配的檔案**名稱**](https://github.com/CarsonSlovoka/replace/blob/1230a78f5e29ab84177b362fff48e27264c97aba/src/.replace.json#L2-L3)(不指定則視為全部對象)\n- [可以指派資料夾](https://github.com/CarsonSlovoka/replace/blob/1230a78f5e29ab84177b362fff48e27264c97aba/src/.replace.json#L13-L14): 相對路徑, 絕對路徑都支持\n- [能使用正規式進行取代](https://github.com/CarsonSlovoka/replace/blob/1230a78f5e29ab84177b362fff48e27264c97aba/src/.replace.json#L4-L5)\n\n## Download\n\n可以至[releases](https://github.com/CarsonSlovoka/replace/releases)的頁面找尋喜歡的版本下載該zip檔案即可(目前僅提供windows)\n\n## Build \u0026 Install\n\n您也可以選擇手動編譯\n\n```yaml\ngit clone https://github.com/CarsonSlovoka/replace.git\ngo install -ldflags \"-s -w\" github.com/CarsonSlovoka/replace/replace\n\n# 如果您不喜歡go install預設放置的目錄，可以選擇以下指令替換\ngit clone https://github.com/CarsonSlovoka/replace.git\ncd replace/replace # 請切換replace的資料夾\ngo build -o replaceAll.exe -ldflags \"-s -w\" --pkgdir=.. # 因為go.mod位於上層目錄之中\n```\n\n## USAGE\n\n在您的工作目錄新增檔案(例如:my-replace)，內容可以參考[.replace.json](src/.replace.json)\n\n```yaml\nreplace -f=\"my-replace.json\"\nreplace -f=\"my-replace.json\" -dry=1 # 僅測試，不會更改檔案\n```\n\n\u003e ⚠ `replace.exe`在windows系統，可能會與%WINDIR%\\system32\\replace.exe名稱相同，因此可能會有衝突，我們會建議您可以把執行檔改成`replaceAll.exe`\n\n## 雜記\n\n- [pkg.dev](doc/pkg-dev.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonslovoka%2Freplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarsonslovoka%2Freplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonslovoka%2Freplace/lists"}