[14] 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 : get the current working directory of a running program

golang executable file-path

Problem :

You are looking for way to get the folder/directory of the running program.

Solution :

Use https://bitbucket.org/kardianos/osext.... 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

How to tell if a binary(executable) file or web application is built with Golang?

golang executable binary created-by-golang


How to tell if a binary(executable) file or web application is built with Golang?


Back in the DOS….... read more

Golang : Embed secret text string into binary(executable) file

golang embed-include-data executable-binary-file secret-text-string hex


You want to hide certain plain text string that you plan to embed(include) in your executable or binary file.….... read more

Golang : Convert an executable file into []byte example

golang byte-conversion write-read-file c executable

This small utility program will read an executable file(or just any file) and convert the content into a []byte slice.….... read more