stringutil

package module
v0.0.0-...-60bd176 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

README

String Utilities for Go

A compilation of string-related helper functions. Please see Godoc for more informations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoRandom

func CryptoRandom(length int) (string, error)

CryptoRandom generates random string of given length

func ToLowerArray

func ToLowerArray(arr []string) []string

ToLowerArray converts all element to use lower case

func TrimArray

func TrimArray(arr []string) []string

TrimArray removes whitespace and empty string elements

func TrimWhitespace

func TrimWhitespace(s string) string

TrimWhitespace trims all whitespace on given string, including in-between words.

Types

This section is empty.

Jump to

Keyboard shortcuts

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