[8] Results

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 : 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


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 : 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


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 : 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 : Turn string or text file into slice example

golang text-string convert-to-slice delete copy append

Alright, I need to parse a large number of text files that contain some raw data generated by a machine.….... read more


Golang : Forwarding a local port to a remote server example

golang port-forwarding tcp-net io-copy remote-server

Got a strange request yesterday. A friend who is an IT manager in his company needs to implement some control….... read more


Advertisement