[13] Results

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

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

Problem:

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


Golang : Chunk split or divide a string into smaller chunk example

golang chunk-split line-break character-wrap rfc-2045

Problem:

You need a function in Golang that are similar to PHP's chunk_split() function that can split a string into….... 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 : Simple word wrap or line breaking example

golang line-break word-wrap slice-string

Problem:

You have a long text string and you want to wrap the text according to a given number of….... 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


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 : 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 : How to convert character to ASCII and back

golang character rune string ASCII

Problem:

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


Advertisement