[68] Results

Golang : Gorilla web tool kit schema example

golang schema data-map-to-object gorilla

This is an example on how to use Gorilla web tool kit Schema package. The Schema package is….... read more

Golang : How to convert JSON string to map and slice

golang json-to-map json-to-slice array

Couple of simple examples on how to convert JSON string to map and slice(array).

Simple and straightforward way of converting….... 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 : Get all countries phone codes

golang json-unmarshal-to-map countries-phone-codes iso

Continue from previous tutorial where we learn how to get all the currencies names, but this time it….... 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 : How to delete element(data) from map ?

golang delete element map

Problem :

You need to delete some elements from a map.

Such as:

cities := map[string]string{ "city1":"New York", "city2":"Adelaide"….... read more

Golang : [json: cannot unmarshal object into Go value of type]

golang json-cannot-unmarshal-object

Un-marshalling JSON data from external sources can be challenging sometimes. Encountered this error message while working on the previous .... read more

Golang : interface - when and where to use examples

golang interface unmarshal object-oriented

Question :

New comer to Golang will need to learn about interface eventually. So what exactly is interface? Where and….... read more