Articles by Deepak Prasad
Golang Environment variables [One STOP Tutorial]
golang environment variables, golang get env variable, get env variable golang, os.getenv golang, go os getenv golang os.getenv, env golang, golang unset …
Golang Closure Function Tutorial
learn about the basics of golang closure function, how it is related to anonymous function. When should you use and how to use closure function in go code
Go Anonymous Function Explained
What are Anonymous Functions in golang? Declaring anonymous function in Go Invoking Anonymous Function in Go Use variable to execute anonymous function Passing …
How to read json data format in Go
We shall discuss the following:- What is JSON? Read JSON Data to map Read JSON Data to struct Save JSON Data Using Marshal() (converting from a Go data type to …
How to assign Pods to Nodes | Kubernetes Node Affinity
In this tutorial we'll show how we can use node affinity to schedule application pods as per our needs.
Reverse Shell Cheat Sheet With Examples [100% Working]
This post will give you a detailed guide on how to create Reverse Shells with Netcat. Let’s dive in.
Create custom GO module with Examples [Step-by-Step]
Now, we will create an example Go module. We will call it GoLinuxCloud. First, we need to create a folder inside the GOPATH src directory. Now, we need to
SOLVED: How to return multiple values in GoLang func()
In this article, we are discussing how to return multiple values using a function in Go.
Golang Read File (Line by Line, Entire File, Large Files Explained)
Learn how to read files in Golang using os.ReadFile, bufio.Scanner, and bufio.Reader. This guide covers reading entire files, line-by-line processing, handling …
Powerful Pattern Matching Techniques in Python Revealed
Discover the transformative power of pattern matching in Python with our comprehensive guide. Dive into advanced techniques, avoid common mistakes, and harness …
5 ways to check if a string is an integer in Python
When operating with numbers and strings, many times while fetching the data from the text box, we fetch it as a string. Now, on back-end this data may be
Read File in Golang with Timeout (Handle Large Files, Scanner Errors & Real Examples)
Learn how to read files in Golang with timeout handling using select, time.After, and context.WithTimeout. This guide covers reading files line by line, in …
Simplifying variable scope in Golang [Practical Examples]
Variable scope refers to the particular places it is accessible from within the function or block level, a package of a given program. A package-level
Kubernetes subPath Examples | MountPath vs subPath Explained
The Kubernetes subPath property prevents overwriting of existing data by mounting a single file from the volume instead of mounting the whole volume. We'll
5+ ways to merge two python dict into single expression
This is a simplest approach to merge two python dictionaries. This approach is used only if we don't mind overwriting the content of original dictionaries.
