Tutorials

golang.pngGolang : Write multiple lines or divide string into multiple lines

25th May 2015

Problem :

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



zip.pngGolang : Zip file

24th May 2015

Go's standard library provides support for several archive file formats. Zip format is the most common standard of compressing file.….... read more



golang.pngGolang : Convert uint value to string type

22nd May 2015

Problem :

You have an uint value and you want to convert(cast) the value into string.

Solution :

Use….... read more



golang.pngGolang : How to split or chunking a file to smaller pieces?

22nd May 2015

Problem :

You have a big file and you want to split / chunk the file into smaller pieces. How….... read more



golang.pngGolang : Drop cookie to visitor's browser and http.SetCookie() example

21st May 2015

There are times developers need to drop cookie to website visitors' browser to determine if a particular visitor has been….... read more



golang.pngGolang : Post data with url.Values{}

18th May 2015

Just a short example on how to use url.Values{}. This code fragment is taken from previous tutorial on….... read more



golang.pngGolang : Storing cookies in http.CookieJar example

18th May 2015

Cookie can be useful for storing data and to be retrieved later on to fill in form values such as….... read more



golang.pngGolang : Wait and sync.WaitGroup example

18th May 2015

There are time when we need to get multiple things done concurrently first and make sure the processes result are….... read more



golang.pngGolang : Get own process identifier

18th May 2015

There are times when developer needs to know the own process identifier(PID) of the executing program during runtime. This is….... read more



golang.pngGolang : If else example and common mistake

18th May 2015

Maybe I'm so used to PHP before moving to Golang that I keep making the same mistake with IF-ELSE-THEN statement….... read more



golang.pngGolang : How to make function callback or pass value from function as parameter?

18th May 2015

There are times we need to evaluate a function and pass the evaluated value as parameter to a function. In….... read more



golang.pngGolang : Strings to lowercase and uppercase example

17th May 2015

A quick and short tutorial on how to change uppercase characters to lower case and vice-versa. If you string value….... read more



golang.pngGolang : Calculate future date with time.Add() function

17th May 2015

Problem :

You need to calculate future dates by number of days. This can be use in calculating expiring dates….... read more



golang.pngGolang : Calculate time different

17th May 2015

Problem :

You are looking to calculate the days between two dates. How to do that in Golang?

Solution :

.... read more



golang.pngGolang : Get current, epoch time and display by year, month and day

17th May 2015

Problem :

You need to get current and Epoch(Unix) time and display the time by year, month and day.

Solution….... read more



golang.pngGolang : Progress bar with ∎ character

17th May 2015

This tutorial is add on to the previous tutorial on how upload/receive progress indicator. Just a slight modification,….... read more



golang.pngGolang : Concatenate (combine) buffer data example

13th May 2015

At previous tutorial on how to concatenate ( combine ) strings data, a reader asked how to concatenate….... read more



golang.pngGolang : Array mapping with Interface

13th May 2015

New comers to Golang often have slight difficulty understanding how interface works in Golang. This is a simple tutorial to….... read more



Advertisement