[11] Results

Swift : Convert (cast) Character to Integer?

casting swift int character

Problem :

How to convert (cast) character to integer in Swift programming language ?

Solution :

Simple. Just cast the….... read more

Golang : invalid character ',' looking for beginning of value

golang invalid-character

In has been a while since I've encounter a strange error message that I couldn't comprehend. However, today is special….... read more

Golang : ROT47 (Caesar cipher by 47 characters) example

golang rot47 caesar-cipher ASCII character-substitution

Here is an example of how to implement the ROT47 - Rotate 47 characters algorithm in Golang. ROT47 is a….... read more

Golang : Warp text string by number of characters or runes example

golang line-break character-wrap rune-slice slice-character


You have a long text string and you want to wrap the text according to a given number of….... read more

Golang : How to convert character to ASCII and back

golang character rune string ASCII


ASCII or American Standard Code for Information Interchange is used to represent characters and device control in computers. How….... read more

Golang : Characters limiter example

golang character-limiter io-readatleast


You want to limit a string to X number of characters. How to do that?


Use io.ReadAtLeast() function….... read more

Golang : Convert spaces to tabs and back to spaces example

golang tab space convert unicode character-substitution

A simple example on how to convert spaces to tabs and convert back the tabs to spaces again in a….... read more

Golang : Extract sub-strings

golang extract sub-strings splitN character-position

To extract sub-strings from a string in Golang, it can be done by determining a common delimiter and tokenize each….... read more