[143] Results

Golang : How to detect if a sentence ends with a punctuation?

golang natural-language-processing punctuation-mark convert-string-to-rune

Problem : I need to detect if a line ends with a punctuation mark or not. How to do that?

.... read more


Golang : Convert a rune to unicode style string \u

golang rune unicode convert quote-rune-to-ascii

Continuing from previous tutorial on how to get escape characters or \u unicode style string. These are some….... read more


Golang : convert int to string

golang strconv convert-to-string

While working on previous tutorial on displaying struct values in string format with a method. I stumbled upon….... read more


Golang : Convert(cast) string to rune and back to string example

golang convert type-cast rune string

Tutorial on how how to convert a string to rune type and back to string. Dealing with rune can be….... read more


Golang : Convert int to byte array([]byte)

golang integer-to-byte-array strconv convert-to-string

Problem :

You need to convert integer variable or constant to byte array ( [] byte ). How to do….... read more


Golang : Turn string or text file into slice example

golang text-string convert-to-slice delete copy append

Alright, I need to parse a large number of text files that contain some raw data generated by a machine.….... read more


Golang : Convert octal value to string to deal with leading zero problem

golang octal leading-zero-problem convert-octal-to-string

Problem :

You have some integer variables or input data that starts with zero and they are causing some funky….... read more


Golang : Random Rune generator

golang random rune string

Just a quick tutorial on how to generate random runes and add on to previous tutorial on how….... read more


Advertisement