[28] Results

Golang : Extract or copy items from map based on value

golang extract-element map-subset copy-map


You want to copy map or make a new map with subset or extract items from another map based….... 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 : Copy map(hash table) example

golang copy-map


You have a map and you want to copy the elements to another map. How to do that ?

.... read more

Golang : Map within a map example

golang map array

Just an example of map within map in Golang. The example below demonstrates how to put declare a map with….... read more

Golang : Check if element exist in map

golang check-element map

Key based element search on a map is the most frequent method use to retrieve the associated value. However, there….... read more

Golang : Array mapping with Interface

golang interface map array

New comers to Golang often have slight difficulty understanding how interface works in Golang. This is a simple tutorial to….... read more

Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter

jawi unicode rumi map translate

A simple example on how to use Golang's map to build a Jawi(Malays in Arabic script) to Rumi translation dictionary.….... read more

Golang : Detect user location with HTML5 geo-location

golang detect-location google-map

Problem :

You need to detect your visitor's location (i.e latitude and longitude) and display on Google map showing the….... read more