Tutorials
Golang : delete and modify XML file content
In our two previous tutorials on how to read XML file and how to create XML….... read more
Golang : Encrypt and decrypt data with AES crypto
In this tutorial we will learn how to encrypt data with Golang's AES crypto package.
AES or Advanced Encryption Standard….... read more
Golang : Read directory content with os.Open
There are few ways to traverse a directory tree and content in Go. One of them is os.File.Readdir function. In….... read more
Golang : Read directory content with filepath.Walk()
Golang's filepath.Walk function allow a program to traverse a directory content and tree with ease. In this tutorial, we will….... read more
Golang : Iterating Elements Over A List
In this short tutorial, we will learn how to iterate the elements over a list. The code below will populate….... read more
Golang : constant 20013 overflows byte error message
Haven't been updating the tutorials portion for a while as I was busy writing up examples for Golang bytes package.….... read more
Read a XML file in Go
Golang has a very powerful encoding/xml
package that comes with the standard library. All you need to do is the….... read more
Golang Hello World Example
This tutorial is dedicated to a young(11 years old by the time of writing) and upcoming programmer learning Golang in….... read more
Javascript : Prompt confirmation before exit
There are times when I typed some words into Facebook comment fields and then somehow got distracted to do….... read more
Uninstall Go from Mac
Uninstalling Golang from Mac OSX machine can be done easily. All you to do is the remove this directory /usr/local/go
Golang : Get command line arguments
Basically there are two ways to get arguments from the command line in Go.
The first way is via….... read more
Golang : Resolve domain name to IP4 and IP6 addresses.
In this short tutorial, we will learn how to resolve (find out) the IP, IP4 and maybe IP6 addresses for….... read more
Golang *File points to a file or directory ?
In this tutorial, we will learn how to find out if the *File pointer is pointing to a file or….... read more
Golang :Trim white spaces from a string
String manipulation functions are a must have for a programming language and Go has plenty of them. In this tutorial….... read more
Find and replace a character in a string in Go
String manipulation functions are a must have for a programming language and Go has plenty of them. In this tutorial….... read more
Golang : md5 hash of a string
This is the simplified version of the previous tutorial on generating checksum in Go. The aim is to….... read more
Golang : Check if a directory exist or not
In this short tutorial, we will learn how to check if a parameter passed as argument is directory or not.….... read more
Delete a directory in Go
A simple tutorial on how to delete a directory in Go. This tutorial is a respond to this solution….... read more