model

package
v0.0.0-...-fe69355 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdOptions = &Options{}

Functions

func Zip

func Zip(srcDirPath string, destFilePath string, args ...*regexp.Regexp) (n int64, err error)

Zip 压缩为zip

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()

func (*Options) Run

func (o *Options) Run() error

Jump to

Keyboard shortcuts

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