Tutorials
Golang : Exit, terminating or aborting a program
There are times where a controlled termination of a program is required rather than proceeding ahead. This is a quick….... read more
Golang : Generate Codabar
In this tutorial, we will learn how to generate Codabar with Golang. We will use couple of third party packages….... read more
Golang : Generate Code128 barcode
Generating Code 128 barcode in Golang can be done easily with this package ( https://github.com/boombuler/barcode ). We will….... read more
Golang : HTTP Server Example
Simple tutorial on HTTP server examples with Golang. Run the codes below and point your browser to http://localhost:8080
or http://localhost:8080/replyname/yourname
….... read more
Golang : How to Set or Add Header http.ResponseWriter?
Problem :
How to set or add header to http.ResponseWriter?
Solution :
The solution is similar to previous .... read more
Golang : Set or Add HTTP Request Headers
Problem :
While coding the tutorial on how to interface with PayPal, I need to add header value….... read more
Golang : Convert HTTP Response body to string
Problem :
While writing tutorial on how to interface with PayPal's IPN(Instant Payment Notification), I need to convert….... read more
Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example
A startup or any online company at minimum needs to have 3 people. One to make something, another to sell….... read more
Golang : Generate random string
In this tutorial, we will learn how to generate random string in Golang. Random strings can be used in many….... read more
Golang : How to run Golang application such as web server in the background or as daemon?
Problem :
You have completed your Golang program and want to run it as a background process or daemon. For….... read more
Golang : Iterate map
Got a question by a friend asking how to how to iterate through a map in Golang today. Thought that….... read more
Golang : How to redirect to new page with net/http?
Problem :
You need to do a page redirect in Golang. How to do it ?
Solution :
Use net/http
….... read more
Golang : Timeout example
It is important for programs to know when to abort when connecting to external resources. One such example is the….... read more
Golang : Terminate-stay-resident or daemonize your program?
Back in the old days of DOS, the concept of terminate-stay-resident via interrupt 27 is popular among programmers looking to….... read more
Golang : How to detect a server/machine network interface capabilities?
Problem :
You want to know which network interfaces on a server that support Broadcast, Loopback, PointToPoint or Multicast networking….... read more
Golang : Read tab delimited file with encoding/csv package
This tutorial is just a slight modification from previous tutorial on how to read CSV file and save….... read more
Web : How to see your website from different countries?
Problem :
You need to see(visually) how does your website looks like from different countries and you don't have multiple….... read more
Golang : Create PDF file from HTML file
When I was coding with PHP and CodeIgniter framework, I need to generate PDF file to email receipts to my….... read more