helpers

package
v0.0.0-...-82ee903 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: MIT, MIT Imports: 9 Imported by: 0

README

go-helpers

GoDoc

A collection of helper functions about anything and everything. Contribute however you like :)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllUniqueWord

func AllUniqueWord(s string) bool

AllUniqueWord will return a bool value based on if the word contains unique characters or not.

func DiffSlices

func DiffSlices(X, Y []int) []int

DiffSlices takes two integer slices and returns the diff between them

func FileExists

func FileExists(name string) bool

FileExists verifies if a filepath exists

func MD5

func MD5(cad string) string

MD5 encription

func PseudoUUID

func PseudoUUID() (uuid string)

PseudoUUID generates a uuid like string

func RandInt

func RandInt(min int, max int) int

RandInt returns a random integer between the min and max you set

func RandomString

func RandomString(l int) string

RandomString gets the desired length and returns a random string

func ReplaceSpacesWSymb

func ReplaceSpacesWSymb(s string, symb string) (result string)

ReplaceSpacesWSymb expects two strings, first arg being the string itself Second argument is the symbol to replace spaces E.G: s := "emir ozer" symb := "%20" / Result will be "emir%20ozer"

func ReverseStr

func ReverseStr(s string) (result string)

ReverseStr returns the string reversed

func StrPermutation

func StrPermutation(a string, b string) bool

StrPermutation checks if two strings has the same elements in the same amount

Types

This section is empty.

Jump to

Keyboard shortcuts

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