[87] Results

Golang : Write multiple lines or divide string into multiple lines

golang multiple-lines divide-string

Problem :

You have a long string and you need to divide the string into multiple lines. How to do….... read more

Golang : How to check for empty array string or string?

golang string check-empty-string string-array

Sometimes that most obvious thing can be the hardest to remember. Putting this down as a note for myself and….... read more

Golang : Increment string example

golang increment-string suffix string


You need to create "copies" of a file, prevent user from overwriting files accidentally or need duplicate database content….... read more

Golang : How to get quoted string into another string?

golang quoted-string appendquote string

Problem :

You have a string and you want to join it with another string which is quoted. Somehow, you….... read more

Java : Random alphabets, alpha-numeric or numbers only string generator

java random string alphanumeric

A simple Java function to generate random string based on given parameter - alpha, alphanum and numeric. Depending on the….... read more

Python : Convert(cast) bytes to string example

python string bytes

Problem :

You want to convert or type cast bytes variable to type string variables in Python. How to do….... read more

Swift : substringWithRange() function example

swift sub-string substringWithRange

A quick tutorial as add on from previous tutorial on how to get sub-string with rangeOfString() function. Another….... read more

Swift : Convert (cast) String to Double

casting swift double string

Helping out a colleague to solve this simple task of converting string value to double today. Putting down this solution….... read more