[7] Results

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 : How to stop user from directly running an executable file?

golangqt prevent-application-launching update-program executable-file

There are times when you need to prevent the user from directly executing an executable file, especially if the executable/binary….... 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 : 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 : 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