tidy

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(str string) string

Types

type Option

type Option func(*Options)

func DeleteSrc

func DeleteSrc(d bool) Option

func DryRun

func DryRun(d bool) Option

func DuplicationAutoReplace

func DuplicationAutoReplace(d bool) Option

func Pattern

func Pattern(pattern string) Option

func SourcePath

func SourcePath(src string) Option

func TargetPath

func TargetPath(dst string) Option

type Options

type Options struct {
	SourcePath             string
	TargetPath             string
	Pattern                string
	DryRun                 bool
	DeleteSrc              bool
	DuplicationAutoReplace bool
}

type Worker

type Worker struct {
	PrintMsgFunc func(msg string)
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(opts ...Option) *Worker

func (*Worker) Tidy

func (w *Worker) Tidy()

Jump to

Keyboard shortcuts

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