[34] Results

Golang : Copy map(hash table) example

golang copy-map

Problem:

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

.... read more


Golang : Extract or copy items from map based on value

golang extract-element map-subset copy-map

Problem:

You want to copy map or make a new map with subset or extract items from another map based….... read more


Golang : Copy file

golang copy

Here’s an example to copy a file named “input.txt” to another file named “output.txt”. Copying files can be done in several ways in Go. The….... 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 directory - including sub-directories and files

golang copy-directory

Another day, another tutorial....ok...we will learn how to copy all the content of the directory to another directory with Go. The copy process will perform….... read more


Unix/Linux : secure copying between servers with SCP command examples

unix-linux scp secure-copy remote-server

Have to write this down in case I forget again and hope you may find these SCP examples useful too.

.... read more


Golang : Convert slice to array

golang slice array convert copy

For new comer to Golang, slice and array can be confusing sometimes. In a nutshell, a slice length(size) is flexible….... 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


Advertisement