Articles by Deepak Prasad
Golang watcher (fsnotify) Examples [In-Depth Tutorial]
In golang we have fsnotify package which can be used to monitor files and directories for any types of changes. fsnotify is not available in standard library
How to create nested directory in Golang? [SOLVED]
In this tutorial we will explore different methods which are possible to create nested directories in golang.
How to list installed packages in Golang? [SOLVED]
In this tutorial we will show different methods to show where are go packages installed or to list all installed packages in golang.
How to use 'sed' and 'awk' in Golang? [SOLVED]
In this tutorial we will cover different examples using sed and awk commands from shell into golang programming language. We have already covered exec.Command
How to execute shell commands in Golang? [SOLVED]
In this tutorial we will cover multiple methods and scenarios to execute shell commands in golang.
Start a process in background and wait Golang [4 Methods]
In this tutorial we will explore different methods and functions which we can use in golang to execute a process in background and then wait for it to complete. …
How to PROPERLY kill a process in Golang? [SOLVED]
In this tutorial we will cover different scenarios to kill a process using golang code. We will use different in-built functions to achieve this requirement.
Get local IP Address in Linux using GO [4 Methods]
Different methods to get local IP Address in Linux using golang. Here we will explore some of the possible ways to get both IPv4 and IPv6 addresses on all
Convert map to struct in Golang [4 Methods]
There are different methods to convert go map to struct, some of them are Using for loop, Using reflect package, Using json.Unmarshal() function, Using …
Convert map to JSON in Golang? [4 Methods]
In golang there are couple of methods using which we can easily convert map to JSON, some of the methods are: Using json.Marshal() function, Using …
How to set CPU Affinity in Golang? [SOLVED]
There are multiple methods to set CPU Affinity in golang such as using taskset, syscall package or you can use C library inside the GO code to use …
firewalld Cheat Sheet: firewall-cmd Rules, Commands and Examples
Learn the most important firewalld commands using this firewall-cmd cheat sheet. This guide covers common firewalld rules, listing firewall rules, managing …
Pacman Command in Arch Linux: Install, Update, Remove & Examples (2026 Guide)
Learn how to use pacman command in Arch Linux with practical examples and cheat sheet. Install, update, remove packages, and understand pacman usage for …
Understand the Concept Of The Internet Market Share
As of April 2022, statistics show that about 63.1% of the world's population have access to the internet and are frequent users. This number is expected to
How to use Python next() function? [SOLVED]
The next() function is a built-in function in Python that retrieves the next item from an iterator. It takes an iterator as an argument and returns the next
