stringutils

package
v1.4.2-0...-9ad8752 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

README

This package provides helper functions for dealing with strings

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomAlphaOnlyString

func GenerateRandomAlphaOnlyString(n int) string

Generate alpha only random stirng with length n

func GenerateRandomAsciiString

func GenerateRandomAsciiString(n int) string

Generate Ascii random stirng with length n

func InSlice

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

Test wheather a string is contained in a slice of strings or not. Comparison is case insensitive

func ShellQuoteArguments

func ShellQuoteArguments(args []string) string

Take a list of strings and escape them so they will be handled right when passed as arguments to an program via a shell

func Truncate

func Truncate(s string, maxlen int) string

Truncate a string to maxlen

Types

This section is empty.

Jump to

Keyboard shortcuts

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