Tutorials
Grep : How to grep for strings inside binary data
Grep or Global Regular Expression Print is a very useful Unix/Linux command that I've practically used everyday. So, recently a….... read more
Golang : Read until certain character to break for loop
Encounter a situation where I need to tell the editor that is time to save the input and exit while….... read more
Golang : Text file editor (accept input from screen and save to file)
The images of me learning WordStar as kid somehow appeared in my dream yesterday. So, today I'm going to write….... read more
Golang : Delete certain files in a directory
Encounter a situation today where I need to delete some files in a directory. Not all files, but some files….... read more
Golang : Rename part of filename
This simple tutorial is a code fragment extract from previous tutorial for scanning and renaming partial filenames showing….... read more
Golang : Saving(serializing) and reading file with GOB
Golang has a package ( GOB ) that allows developers to store memory values( such as int[], float64[] or any….... read more
Golang : Scan files for certain pattern and rename part of the files
It is useful to have the ability to scan filenames that match certain pattern and rename part of the filenames….... read more
Golang : Find IP address from string
In this short tutorial, we will learn how to get the first occurrence of an IP address in a given….... read more
Javascript : How to refresh page with JQuery ?
Sometimes, easy thing such as refreshing a page with javascript or jquery is the hardest thing to remember. To refresh….... read more
Golang : How to check if IP address is in range
For security purpose, sometimes a server can only accept connection from clients that are trusted and of certain IP addresses.….... read more
Golang : Rename directory
Just a slight variation from the tutorial on moving file to another with Golang. This tutorial will show….... read more
Mac OSX : Homebrew and Golang
This is a different version of the tutorial for removing Go from Mac. In this tutorial, we will….... read more
Golang : Call function from another package
Very often new comers learning Go will encounter problem in calling functions from another library or package. Go needs to….... read more
Golang : Read integer from file into array
This tutorial will demonstrate how to read a file with integer values into array. Let say nums.txt
is a file….... read more
Golang : Get IP addresses of a domain name
This small program demonstrate how to Golang's net.LookupIP() function to get the IP addresses from a given domain….... read more
Golang : Convert(cast) int to int64
It is not so cool to use type int now. It was so yesterday. Everyone wants to move to 64-bit….... read more
Golang : Convert(cast) float to int
One of trait of a good programmer is laziness. There are times that I wish to have a complete source….... read more
Golang : How to get own program name during runtime ?
One of the common question asked by newbie to Golang is how does one get their own program name during….... read more