Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdOptions = &Options{}
Functions ¶
Types ¶
type Options ¶
type Options struct { TargetFilePath string //目标文件路径 TargetFileRule string //目标文件名称规则 IgnoreFileRule string FindRule string //内容查询规则 ReplaceWith string //替换为 SaveToPath string //将匹配到的文件按照相同的目录结构另存 CompressSave bool //是否保存为压缩文件 ConvertEncoding string //转换编码(例如:utf-8->gbk,也可以采用"->gbk"来自动确认原始文件的编码) ReplaceMode bool RestoreVer string ClearBackup bool }
func (*Options) DefineFlag ¶
func (o *Options) DefineFlag()
Click to show internal directories.
Click to hide internal directories.