replace

module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: MIT

README

replace
Made with Go Go Version Latest release License

replace

字串取代

Features

Download

可以至releases的頁面找尋喜歡的版本下載該zip檔案即可(目前僅提供windows)

Build & Install

您也可以選擇手動編譯

git clone https://github.com/CarsonSlovoka/replace.git
go install -ldflags "-s -w" github.com/CarsonSlovoka/replace/replace

# 如果您不喜歡go install預設放置的目錄,可以選擇以下指令替換
git clone https://github.com/CarsonSlovoka/replace.git
cd replace/replace # 請切換replace的資料夾
go build -o replaceAll.exe -ldflags "-s -w" --pkgdir=.. # 因為go.mod位於上層目錄之中

USAGE

在您的工作目錄新增檔案(例如:my-replace),內容可以參考.replace.json

replace -f="my-replace.json"
replace -f="my-replace.json" -dry=1 # 僅測試,不會更改檔案

replace.exe在windows系統,可能會與%WINDIR%\system32\replace.exe名稱相同,因此可能會有衝突,我們會建議您可以把執行檔改成replaceAll.exe

雜記

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL