Tutorials

chrome.jpgChrome : How to block socketloop.com links in Google SERP?

24th January 2016

Problem:

You suspect that the atoms inside your brain will start to rearrange in undesirable ways or cause one or….... read more



golang.pngGolang : Calculations using complex numbers example

22nd January 2016

Alright, you need to calculate the last known position of UFOs and their flying trajectory in Golang or you just….... read more



golang.pngGolang : Function as an argument type example

21st January 2016

When we need to invoke another function inside a.... let's say outer function, the typical way to do this is….... read more



golang.pngGolang : Convert integer to binary, octal, hexadecimal and back to integer

20th January 2016

Converting integers to binary, octal and hexadecimal is fairly common in programming life. Ported these simple functions from Python to….... read more



golang.pngGolang : Accurate and reliable decimal calculations

20th January 2016

If you have been programming for a long time, chances are you will be aware of a well-known issue with….... read more



golang.pngGolang : Proper way to set function argument default value

20th January 2016

In PHP, it is easy to specify the default values of a function arguments. All you need to do is….... read more



golang.pngGolang : Warp text string by number of characters or runes example

19th January 2016

Problem:

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



golang.pngGolang : Characters limiter example

19th January 2016

Problem:

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

Solution:

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



golang.pngGolang : Simple word wrap or line breaking example

18th January 2016

Problem:

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



golang.pngGolang : Word limiter example

18th January 2016

Problem:

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

Solution:

Break the string….... read more



golang.pngGolang : Interpolating or substituting variables in string examples

15th January 2016

For this quick tutorial, we will explore how to interpolate(substitute) actual data into variables inside a string. Will keep these….... read more



golang.pngGolang : Aligning strings to right, left and center with fill example

13th January 2016

Problem:

You are so used to Python way of aligning text strings such as ljust(), rjust() and center() and Golang's….... read more



golang.pngGolang : Format strings to SEO friendly URL example

13th January 2016

Problem:

You want to take a string and format it to SEO friendly URL. SEO friendly means no uppercase, underscore….... read more



golang.pngGolang : Normalize unicode strings for comparison purpose

12th January 2016

Here is a tutorial on of how to normalize unicode strings and do proper comparison of unicode strings. Suggest that….... read more



golang.pngGolang : Copy map(hash table) example

5th January 2016

Problem:

You have a map and you want to copy the elements to another map. How to do that ?

.... read more



golang.pngGolang : Use wildcard patterns with filepath.Glob() example

5th January 2016

Searching for files by extension can be done easily in Golang with filepath.Ext() function. To search for files….... read more



golang.pngGolang : Match strings by wildcard patterns with filepath.Match() function

5th January 2016

Problem:

You want to match strings using the same wildcard patterns commonly used in Linux/Unix shells such as *.go or….... read more



golang.pngGolang : Extract or copy items from map based on value

4th January 2016

Problem:

You want to copy map or make a new map with subset or extract items from another map based….... read more



Advertisement