libstring

package
v3.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 6 Imported by: 10

Documentation

Overview

Package libstring provides string related library functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTilde

func ExpandTilde(path string) string

ExpandTilde is a convenience function that expands ~ to full path.

func ExpandTildeAndEnv

func ExpandTildeAndEnv(path string) string

ExpandTilde is a convenience function that expands both ~ and $ENV.

func GeneratePassword

func GeneratePassword(size int) (string, error)

GeneratePassword returns password. size determines length of initial seed bytes.

func GetIP added in v1.5.0

func GetIP(address string) net.IP

Split r.RemoteAddr, return an IP object (or nil if ParseIP fails)

func StitchIndentedInLoglines

func StitchIndentedInLoglines(loglines []string) []string

StitchIndentedInLoglines combines stack trace together in one message.

func StringInSlice added in v1.3.1

func StringInSlice(beingSearched string, list []string) bool

StringInSlice search exact match in a slice of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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