Tutorials

golang.pngGolang : Covert map/slice/array to JSON or XML format

30th July 2015

Problem :

You have a data struct in map, slice or array format and you have to convert the data….... read more



golang.pngGolang : How to get HTTP request header information?

30th July 2015

Alright, as a webmaster sometimes we want to know about our visitors and then alert us if there is any….... read more



golang.pngGolang : Whois examples

30th July 2015

Whois a network utility to find out "who is" the owner behind a domain name. Some owners will display all….... read more



golang.pngGolang : Get local time and equivalent time in different time zone

30th July 2015

Problem :

You want to show your website visitor the local time(on your server) and the equivalent time in another….... read more



golang.pngGolang : Display float in 2 decimal points and rounding up or down

30th July 2015

We will cover 2 items for this tutorial.

First, we will learn how to display a float number in….... read more



golang.pngGolang : Math pow(the power of x^y) example

30th July 2015

No programming language will be complete without the power of math function. This tutorial is a simple example on how….... read more



golang.pngGolang : Convert(cast) int to float example

30th July 2015

Problem :

You have a variable of type int and you want to convert/type cast it to float64 type. Also,….... read more



golang.pngGolang : error parsing regexp: invalid or unsupported Perl syntax

29th July 2015

Compiling and running Golang program will throw out some odd error messages sometimes. Got one today with this error message….... read more



golang.pngGolang : Use regular expression to validate domain name

29th July 2015

There are times when a user enter an invalid domain name as input and it is good to validate the….... read more



javascript.jpgJavaScript: Add marker function on Google Map

29th July 2015

Problem :

You want to create add marker Javascript function to put markers on Google Map canvas. How to do….... read more



googlemaps.jpgGolang : Find location by IP address and display with Google Map

29th July 2015

This tutorial is a follow up for the previous tutorial on how to detect a user location with….... read more



jquery.pngJavascript : How to loop over and parse JSON data?

29th July 2015

This note is a short tutorial on how to loop over and parse JSON data with JQuery's each() function and….... read more



golang.pngGolang : Convert int(year) to time.Time type

29th July 2015

Problem :

You have integer value such as a year and you want to convert the integer to time.Time type.….... read more



golang.pngGolang : How to determine if a year is leap year?

29th July 2015

A leap year is a year with 366 days instead of 365 days. The algorithm to calculate if a year….... read more



golang.pngGolang : GORM create record or insert new record into database example

28th July 2015

Continuing from previous tutorial on how to read record from database with GORM. This time we learn how….... read more



golang.pngGolang : Error reading timestamp with GORM or SQL driver

28th July 2015

Problem :

It is common for application to read from database these days and sometimes a missing parameter in the….... read more



golang.pngGolang : Update database with GORM example

28th July 2015

A simple tutorial on how to use GORM(Golang Object Relational Map) to connect to a MySQL/MariaDB database and UPDATE data.

.... read more



golang.pngGolang : GORM read from database example

28th July 2015

Just a simple tutorial on how to use GORM(Golang Object Relational Map) to connect to a MySQL/MariaDB database….... read more



Advertisement