dvsearch

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TrimSpaceLeft  = 1
	TrimSpaceRight = 2
)

Variables

This section is empty.

Functions

func SearchProcessDir

func SearchProcessDir(dir string, option *SearchOption) (int, int)

func SearchProcessFile

func SearchProcessFile(name string, option *SearchOption) int

Types

type SearchOption

type SearchOption struct {
	Pattern         string
	Search          []byte
	SearchLen       int
	SearchRest      [][]byte
	SearchPatterns  []string
	RestPosNumber   int
	ReplaceSkip     int
	ReplaceLimit    int
	Replace         []byte
	ReplaceTotalLen int
	ReplaceRest     [][]byte
	ReplaceOrder    []int
	Verbose         bool
	Check           bool
	TrimSpace       int
	ReadOnly        bool
	// contains filtered or unexported fields
}

func GenerateSearchOptions

func GenerateSearchOptions(search string, replace string, options string, pattern string) *SearchOption

type SearchOptionRunBuffer

type SearchOptionRunBuffer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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