Tutorials
Golang : How to stream file to client(browser) or write to http.ResponseWriter?
Problem :
You have a file - such as a PDF or MP3 file that you want to stream/download straight….... read more
Golang : XML to JSON example
For this tutorial, we will learn how to read data from XML file, process the data and save the output….... read more
Golang : How to convert(cast) string to IP address?
Problem :
You have IP address in string type and you want to convert(cast) the string into type IP address.
….... read moreGolang : How to convert(cast) IP address to string?
Problem :
You need to convert(cast) the integer values you get from function such as net.LookupIP()
or type IP (.... read more
Golang : Get host name or domain name from IP address
Thought this tutorial could be a good compliment to previous tutorial on how to find network of an….... read more
Golang : HTTP Routing with Goji example
Alright, this tutorial will show you how to do HTTP routing with Carl Jackson a.k.a zenazn's Goji package. Pretty simple….... read more
Golang : Muxing with Martini example
In this quick tutorial, we will learn how to do basic multiplexing with Martini package. One thing I really like….... read more
Golang : Denco multiplexer example
Kinda free today to test out couple of Golang's web multiplexers. One of the most interesting multiplexers that I've tried….... read more
Golang : Basic authentication with .htpasswd file
If you are looking to protect a web page with Basic Authentication. It can be done easily with Golang. In….... read more
Golang : HttpRouter multiplexer routing example
HttpRouter attempts to transcend other Golang multiplexers by claiming to have better variables and routing supports. It also claimed to….... read more
Golang : Routes multiplexer routing example with regular expression control
This is another Golang's multiplexer example that is worthy to know about. Routes - it has a similar interface to….... read more
Golang : Pat multiplexer routing example
This is a short tutorial on how to use Pat multiplexer - a Sinatra style pattern muxer for Go's net/http….... read more
Golang : Multiplexer with net/http and map
This is additional tutorial on multiplexer, with just net/http
package and a map.
A multiplexer allows you to….... read more
Golang : Validate email address with regular expression
This short tutorial is add on to my previous tutorial on how to validate email address with Golang.….... read more
Golang : Check if password length meet the requirement
Problem :
You need to check the password's length entered by users. How to do that in Golang?
Solution :
….... read moreGolang : Clone with pointer and modify value
For those familiar with C language and learning Golang, bear in mind that Golang supports pointer. In this short tutorial,….... read more
Golang : Implementing class(object-oriented programming style)
If you are used to ways of doing things in Java or C++, such as declaring class and assigning different….... read more
Fontello : How to load and use fonts?
Problem :
You have downloaded the Fontello fonts that you wanted and now you want to get the fonts to….... read more