build

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegexReplace

func RegexReplace(filename, src, repl string) (e error)

RegexReplace applies the regular expression src to filename and replaces matches with repl. If filename is a directory, it does this recursively for all files and directories contained in it. The replace string repl supports formatting according to the regexp package.

func SearchAndReplace

func SearchAndReplace(filename, srchStr, replStr string) (e error)

SearchAndReplace replaces all instances of srchStr in filename with replStr. If filename is a directory, it does this recursively for all files and directories contained in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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