A map is a ubiquitous data structure that allows us to store key-value pairs, and there are three ways to create maps in Golang. Also, it is one of the reference types in Golang that allows us to change its
Unable To Update Struct Instance Fields in Golang
We cannot update Struct instance fields in Golang! That is partly true because Golang passes arguments to function by value even when it is a struct instance. Aside from function parameters, the effect is the same for “receiver” arguments. Sample
docker-compose.yml for PostgreSQL
This post provides a basic docker-compose.yml to create a PostgreSQL container with initial user account with password.
Golang Struct With Functions
It is common to see Golang Struct with functions, and it is the closest we can get at imitating OOP classes. Other than that, Golang is a procedural language. Defining a Struct We need to define a struct type before
Three Ways To Declare and Initialize a Struct in Golang
Struct in Golang is a container type similar to a Java class or Rust struct containing various fields or properties of various data types. All have equivalent ways of creating an instance. This post shows how three ways to declare
PowerShell – Run application from command line
If you are familiar with Windows Command Line or MS-DOS, PowerShell is way more powerful than them. If you are also familiar is Unix scripting, PowerShell is the ultimate Windows Scripting language.
Shutdown and Abort Shutdown in Windows using DOS
Shutdown and Abort Shutdown in Windows using DOS
Install Golang without an installer in Windows
We do not need an installer to install Golang in Windows. We only need a zip version of its distribution and some environment variables to avoid system-wide impact like installers do. It sounds easy, but doing so requires some knowledge
Golang go and exe Files
This post shows how to run your Golang go script and convert it as an exe file in Windows. Install Golang for Windows I am running a 64-bit Windows 10 box. First, Download Golang Installer (exe file) Proceed to the
DOS – Change your command-line prompt
We can change our default DOS prompt in a command-line window. Sometimes we do not want people knowing the current path we work on or from which directory we invoke commands in a command-line window (DOS prompt). We can temporarily