Tutorials

golang.pngGolang : When to use public and private identifier(variable) and how to make the identifier public or private?

4th June 2015

Got a Golang related question by my friend today, who is learning Golang for the first time. Her question is….... read more



golang.pngGolang : Dealing with struct's private part

4th June 2015

One of the most common things in Golang that easily confuse a newbie is how to declare variable/constant/identifier name properly.….... read more



adblockplus.pngHow to show different content from website server when AdBlock is detected?

3rd June 2015

Problem :

The ads you placed on your website are not showing up because they were blocked by browsers based….... read more



google.pngGoogle : Block or disable caching of your website content

3rd June 2015

Problem :

You don't want Google or other search engines to cache your page content for reason such as -….... read more



golang.pngGolang : fmt.Println prints out empty data from struct

2nd June 2015

Problem :

Your code compiled successfully and there is no error indicator whatsoever. However, during runtime, the fmt.Println function prints….... read more



golang.pngGolang : Check version

2nd June 2015

Sometimes, the most obvious thing can be the hardest to remember. This is just a quick note for future usage...in….... read more



golang.pngGolang : How to count duplicate items in slice/array?

2nd June 2015

Problem :

You need to count the number of duplicate items in a slice or array.

Solution :

Pseudo-code :….... read more



golang.pngGolang : Execute shell command

2nd June 2015

A programming language will not be complete if there is no way for the developer to execute shell command. In….... read more



golang.pngGolang : Get absolute path to binary for os.Exec function with exec.LookPath

2nd June 2015

Sometimes it is good to tell our Golang program to execute exactly which binary file based on the path. For….... read more



golang.pngGolang : alternative to os.Exit() function

2nd June 2015

Just a quick note on the alternative to os.Exit() function, which is the syscall.Exit() function. Both functions behave the same….... read more



golang.pngGolang : Detect user location with HTML5 geo-location

2nd June 2015

Problem :

You need to detect your visitor's location (i.e latitude and longitude) and display on Google map showing the….... read more



golang.pngGolang : Debug with Godebug

1st June 2015

A quick note on debugging in Golang and the latest tool that a sane Golang developer should check out and….... read more



jquery.pngJavascript : Get operating system and browser information

1st June 2015

Problem :

You need to find out your visitor's browser and os version. How to do that with Javascript or….... read more



golang.pngGolang : Convert source code to assembly language

27th May 2015

If you ever have the urge to convert your Golang source code to assembly language, check out this online tool….... read more



golang.pngGolang : Convert slice to array

27th May 2015

For new comer to Golang, slice and array can be confusing sometimes. In a nutshell, a slice length(size) is flexible….... read more



golang.pngGolang : Comparing date or timestamp

27th May 2015

Problem :

You have to compare two timestamps to see if the they are equal or not.

Solution :

Use….... read more



golang.pngGolang : Create zip/ePub file without compression(use Store algorithm)

25th May 2015

Problem :

You need to create zip file without compression. i.e just use the Store algorithm. For example, you are….... read more



golang.pngGolang : Convert Unix timestamp to UTC timestamp

25th May 2015

Problem :

You have a Unix timestamp and you want to convert it to UTC time format. How to do….... read more



Advertisement