Tutorials

golang.pngGolang : Populate dropdown with html/template example

15th March 2016

Creating a clickable dropdown button or HTML select tag is a common task for populating a form. Here is a….... read more



golang.pngGolang : Check if user agent is a robot or crawler example

1st March 2016

Problem:

You need to determine if the user agent that visiting your web server is a bot/robot/crawler. You have tried….... read more



golang.pngGolang : How to determine if user agent is a mobile device example

29th February 2016

With the increasing number of people accessing the Internet with mobile devices such as tablet or smart phone apart from….... read more



golang.pngGolang : Increment string example

23rd February 2016

Problem:

You need to create "copies" of a file, prevent user from overwriting files accidentally or need duplicate database content….... read more



golang.pngGolang : Get current URL example

23rd February 2016

One of the common tasks that a web application developer will encounter is on how to get the currently viewed….... read more



golang.pngGolang : On lambda, anonymous, inline functions and function literals

23rd February 2016

This is just a note for myself and maybe it can be useful to you too. In Golang, lambda, anonymous….... read more



golang.pngGolang : Accept any number of function arguments with three dots(...)

23rd February 2016

There are times when we need to create functions that are able to accept any number of arguments(a.k.a trailing arguments)….... read more



golang.pngGolang : The Tao of importing package

17th February 2016

Jotting down this quick tutorial on how to use import statement properly with formatted I/O - fmt package. However, this….... read more



golang.pngGolang : Combine slices but preserve order example

15th February 2016

In the previous tutorial on how to join arrays in Golang, we use the append function to join….... read more



golang.pngGolang : Join arrays or slices example

15th February 2016

A quick note on how to join arrays or slices in Golang. So used to Python way of joining arrays….... read more



golang.pngGolang : Skip or discard items of non-interest when iterating example

15th February 2016

Problem:

You want to skip or discard items of non-interest when iterating. For example, skipping the commented lines with #.... read more



golang.pngGolang : Loop each day of the current month example

12th February 2016

Problem:

You need to get the current month, find out the number of days in the month programmatically and loop….... read more



golang.pngGolang : Emulate NumPy way of creating matrix example

29th January 2016

Problem:

You are so used to NumPy way of creating matrix and you have difficult time in adapting….... read more



golang.pngGolang : Linear algebra and matrix calculation example

29th January 2016

Continuing from our previous tutorial on how to create matrix with Gonum, we will explore how to perform….... read more



golang.pngGolang : Create matrix with Gonum Matrix package example

28th January 2016

Here is an example of how to create and display matrix properly in Golang with Gonum package. Nothing special in….... read more



golang.pngGolang : Arithmetic operation with numerical slices or arrays example

26th January 2016

Got an email from a new comer to Golang from South Africa, he or she wanted to know how to….... read more



golang.pngGolang : Test floating point numbers not-a-number and infinite example

26th January 2016

A simple example to demonstrate how to create not-a-number and infinite floating-point values in Golang. Will show some example tests….... read more



golang.pngGolang : Combine slices of complex numbers and operation example

26th January 2016

Extension from a previous tutorial on how to perform calculations with complex numbers. For this tutorial, we will….... read more



Advertisement