Tutorials
Apt-get to install and uninstall Golang
For this short tutorial, we will learn how to install, uninstall Golang with apt-get. We will also explore an interesting….... read more
Golang : Ackermann function example
Not really a tutorial, but just want to play with recursive function and toying with Ackermann function. Hope this example….... read more
Golang : How to check if input from os.Args is integer?
While coding out the Ackermann codes, I need to check if the input parameters are in numeric and….... read more
Golang : How to return HTTP status code?
Was helping out a friend today on her work and one of the problems that she encountered during coding was….... read more
Javascript : Shuffle or randomize array example
Problem :
You have an array and you want to shuffle the items in the array. How to do that….... read more
Golang : Heap sort example
Heapsort algorithm divides the unsorted data into a sorted and an unsorted region, and it iteratively shrinks the unsorted region….... read more
Golang : Bubble sort example
Example for Bubble sort algorithm implementation in Golang. Bubble sort a.k.a sinking sort, is a simple sorting algorithm that repeatedly….... read more
Golang : Fibonacci number generator examples
In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence.
….... read more1,1,2,3,5,8,13,21,34,55,89,144...
Golang : How to profile or log time spend on execution?
Being able to calculate how long it takes to execute a routine or function is crucial in optimizing a program(this….... read more
Golang : How to save log messages to file?
Without log file, system administrators and developers life will be difficult or near impossible to do the work. There is….... read more
Golang : Logging with logrus
While researching for the previous tutorial on how to save log messages to file. I came across an….... read more
Golang : Secure(TLS) connection between server and client
This is additional tutorial for the previous tutorial on creating simple client-server program with Golang. In this tutorial,….... read more
Golang : Simple client server example
This a quick tutorial on creating a bare bone client-server program with Golang. We will start with the server part….... read more
Golang : How to get capacity of a slice or array?
Problem :
You have a slice and you need to find out the capacity of the slice.
Solution :
Use….... read more
Golang : Append and add item in slice
Problem :
You need to append/add new element into a existing slice. How to do that?
Solution :
Use the….... read more
Golang : Generate EAN barcode
Short tutorial on how to use https://github.com/boombuler/barcode package to generate EAN(European Article Number, but now known as International Article Number)….... read more
Golang : How to generate Code 39 barcode?
Additional tutorial on how to use https://github.com/boombuler/barcode package to generate code 39 barcode. Code adapted from previous .... read more
Golang : Generate Datamatrix barcode
Datamatrix barcode is popular in the electronics, technology, arts and food industry as a way to mark small items. As….... read more