package
0.2.0
Repository: https://github.com/codersergiy/golib.git
Documentation: pkg.go.dev

# Functions

*************************************************************************************** * * Function : EnsureSlashInEnd * * Purpose : Ensure slesh is presents in the end of string * * Input : url string - string to check * * Return : string with slesh in the end */.
*************************************************************************************** * * Function : GenerateRandomBytes * * Purpose : Generate Random Bytes for reference purpose * * Input : n int - specify size of the buffer * * Return : []]byte - securely generated random bytes * error - if happened, nil otherwise */.
*************************************************************************************** * * Function : GenerateRandomString * * Purpose : Generate Random String for reference purpose * * Input : n int - size of the returning string * * Return : string - securely generated random string * error - if happened, nil otherwise */.
*************************************************************************************** * * Function : GenerateRandomStringURLSafe * * Purpose : Generate URL-safe, base64 encoded random string * * Input : n int - size of the returning string * * Return : string - securely generated random bytes * error - if happened, nil otherwise */.
*************************************************************************************** * * Function : GetGoID * * Purpose : Get ID of gorutine * * Input : Nothing * * Return : Return ID in int format */.
*************************************************************************************** * * Function : Implode * * Purpose : Convert string array to one line with separators * * Input : array []string - income string * separator ...byte - set separator if need it (',' by default) * * Return : string */.