[7] Results

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


Golang : Get executable name behind process ID example

golang os process-id executable-name syscall

Problem:

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


Golang : Get currencies exchange rates example

golang ECB currencies-exchange-rates xml

Problem :

You are building an e-commerce website/application and you want to display prices in certain currencies. You need to….... 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


Golang : Check whether a network interface is up on your machine

golang network-interface probe-status interface-by-name

Problem:

You have multiple network interfaces on your machine and you need to know the status of a particular network….... read more


Golang : How to get struct tag and use field name to retrieve data?

golangstruct-field struct-tag field-by-name

Problem :

A structure data field can have additional information or meta-data. This information is known as struct tag in….... read more


Advertisement