[22] Results

Golang : Delete certain files in a directory

golang delete directory

Encounter a situation today where I need to delete some files in a directory. Not all files, but some files….... read more


Delete a directory in Go

golang delete-directory

A simple tutorial on how to delete a directory in Go. This tutorial is a respond to this solution which is not the recommended way.….... read more


Golang : Delete file

golang delete

Deleting file in Go is simple. This short tutorial will demonstrate how to delete a file. Let choose a file deleteme.file as target practice and….... read more


Golang : Delete files by extension

golang delete

Being able to select certain type of files to delete can be useful. In this follow up tutorial from Golang : Delete file, we are….... 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 : Get path name to current directory or folder

golang current-directory

Problem :

You need to get the path name of the current directory where the executable is residing. How to….... read more


Golang : Check to see if *File is a file or directory

golang file directory

Sometimes, we need to write codes that is robust and flexible enough to handle different situation. For example, if a….... read more


Golang : Check if a directory exist or not

golang directory

In this short tutorial, we will learn how to check if a parameter passed as argument is directory or not. It is pretty straight forward….... read more


Advertisement