strings

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, s string) bool

Contains returns true, if the specified slice contains the specified element, false otherwise

func EscapeSingleQuote

func EscapeSingleQuote(s string) string

func GetOnlyLetters added in v1.5.0

func GetOnlyLetters(yourString string) string

GetOnlyLetters returns a string containing only letters from given string

func GetOnlyNumbers added in v1.5.0

func GetOnlyNumbers(yourString string) string

GetOnlyNumbers returns a string containing only numbers from given string

func GetSignedNumbers added in v1.5.0

func GetSignedNumbers(yourString string) string

GetSignedNumbers returns a string containing only positive and negative numbers from given string

func HasLetters added in v1.5.0

func HasLetters(yourString string) bool

HasLetters returns true when string contains a letter [a-zA-Z]

func HasNumbers added in v1.5.0

func HasNumbers(yourString string) bool

HasNumbers returns true when string contains a letter [0-9]

func HasOnlyLetters added in v1.5.0

func HasOnlyLetters(yourString string) bool

HasOnlyLetters returns true when string contains only letters

func HasOnlyNumbers added in v1.5.0

func HasOnlyNumbers(yourString string) bool

HasOnlyNumbers returns true when string contains only numbers

Types

This section is empty.

Jump to

Keyboard shortcuts

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