Articles by Deepak Prasad
Golang return error and handle [Best Practices]
We can return errors in golanf func and then handle errors effectively using Casting Errors, Error wrapping mechanism, and Panic, defer and recover
Golang Escape Backslash
We can either use additional backslash to escape backslash or raw string literals to convert entire text to string.
How to parse multiple inputs from user in Golang
The following are functions used to read or parse users' inputs in Golang:- fmt.Scanln(), fmt.Scanf(), bufio.NewReader(). These functions can parse single or …
Golang remove duplicates from slice with Examples
remove duplicates in slice golang, find unique elements in array golang, golang count occurrences in slice, find duplicates in array golang, Remove duplcate …
How to Become a Mobile App Developer
The 21st century is the era of multifunctional gadgets. Today, it is difficult to find a person who uses a push-button telephone. Smartphones have long since
Golang time function - Learn the Basics in Detail
golang time now, format, duration, after, loadlocation, sleep, date function explained in detail with examples
Golang panic handing [capture, defer, recover, log]
We will cover the following scenarios in detail: How to capture a panic message FROM stderr to log file, Using defer with panic, Handling golang panics using …
Golang Buffered Channel Tutorial [Practical Examples]
A buffered channel is a type of channel that has storage capacity within. Create and handle deadlock scenario, create lock and unlock code with buffered channel …
Declare golang constant maps - is it possible? [SOLVED]
We can not declare constant maps directly in golang as other programming languages. In this tutorial we covered different workaround hacks to declare golang …
How to pass parameters to function in GO
In this tutorial we covered different scenarios to pass parameters to golang function. Pass int, string, float as parameter or pass map and channel as parameter …
Golang cast to string from different data types
golang cast to string by converting Int type to string, converting Interface type to string, converting Boolean type to string
Golang string to uint8 type casting
We can use strconv.Atoi, fmt.Sscan, and strconv.ParseInt functions for golang string to uint8 type casting.
Why Application Support Services is Important
Information technology is currently at the center of driving business growth and performance hence the need to implement them. However, businesses may not
Golang Context Complete Tutorial with Examples
The golang context package is part of the standard library. It defines a Context struct type and three functions— withDeadline(), withCancel(), and …
Getting started with CGO using Visual Studio Code
Getting started with cgo language. How to use it with Visual Studio Code. Calling C code with GO or calling GO code with C. Create Hello World cgo code.
