[21] Results

Golang : Get executable name behind process ID example

golang os process-id executable-name syscall


You want to check if a process is actually running and at the same time you want to find….... read more

Golang : Decode/unmarshal unknown JSON data type with map[string]interface

golang json map interface unmarshal decode

This tutorial is courtesy of Rohan Allison on how to decode or unmarshal JSON into map[string]interface. There are….... read more

Golang : Display list of countries and ISO codes

golang json-unmarshal-to-map countries-name iso

The code example below will download the JSON formatted data from http://country.io/names.json and unmarshal the data to display a list….... read more

Golang : Use regular expression to validate domain name

golang hostname domain-name validate regexp

There are times when a user enter an invalid domain name as input and it is good to validate the….... read more

Find out the font name with WhatTheFont

fonts font-name what-the-font

Found this interesting online tool call WhatTheFont. Basically, it allows you to upload an image and tells you….... read more

Linux/MacOSX : Search and delete files by extension

linux mac-os-x delete-file by-extension

Continuing from previous tutorial on how to search for files by extension with find command. For this post,….... read more

Golang : How to detect a server/machine network interface capabilities?

golang network-interface multicast point-to-point broadcast loopback

Problem :

You want to know which network interfaces on a server that support Broadcast, Loopback, PointToPoint or Multicast networking….... read more

Golang : Get all countries currencies code in JSON format

golang json-unmarshal-to-map currencies-name iso

For this tutorial, we will learn how to get all the currencies names from http://country.io/currency.json and un-marshall them into a….... read more