Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureSlashInEnd ¶ added in v0.2.0
***************************************************************************************
* * 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
func GenerateRandomBytes ¶
***************************************************************************************
* * 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
func GenerateRandomString ¶
***************************************************************************************
* * 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
func GenerateRandomStringURLSafe ¶
***************************************************************************************
* * 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
func GetGoID ¶
func GetGoID() int
***************************************************************************************
* * Function : GetGoID * * Purpose : Get ID of gorutine * * Input : Nothing * * Return : Return ID in int format
func Implode ¶ added in v0.2.0
***************************************************************************************
* * 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.