replacer

package
v0.0.0-...-ee37d40 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(input string, replace string, sentinel string) (string, error)

Replace takes an input string, a string to replace it with, and a sentinel to search for. It then returns the input string with the input replaced

func Search(input string, regexString string) (int, int, error)

Search takes a string of input, and a string containing which characters to search for (which must be a regex), and returns the very first and very last incidence of that string in the input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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