str

package
v0.0.0-...-8ac10f7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrRegexpFailed Failed to parse tokens from regexp pattern
	ErrRegexpFailed = errors.New("Failed to parse tokens from regexp pattern")
)

Functions

This section is empty.

Types

type Str

type Str struct{}

Str is a static class that captures string related functions

func NewStr

func NewStr() *Str

NewStr generates a String object

func (*Str) IsAlpha

func (str *Str) IsAlpha(line string) bool

IsAlpha returns true if is all letter

func (*Str) IsNumeric

func (str *Str) IsNumeric(line string) bool

IsNumeric returns true if numbers only

func (*Str) RegexMatch

func (str *Str) RegexMatch(haystack string, regex string) ([]string, error)

RegexMatch performs a regex tokenize match

func (*Str) Trim

func (str *Str) Trim(line string, col string) string

Trim all chars in col from front and end of the provided line

Jump to

Keyboard shortcuts

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