Concurrency in Go (Part-3): sync package primitives
Cond, Once and Pool primitives

Search for a command to run...
Articles tagged with #programming-blogs
Cond, Once and Pool primitives

WaitGroup, Mutex & RWMutex Primitives

Introduction Concurrency, asynchronous, parallel and threaded are some keywords we see floating around when we talk about running multiple processes using multiple resources. Although these terms may appear interchangeable in English, they have disti...

Creating errors with errors.New() function If we don't need a custom type for an error, and we can work with a single error type then we can use errors.New() function to create an error on the fly. Creating a new error is simple. We simply need to ca...

Error is a result of unexpected circumstances or abnormal behaviour of the program. For example, a network connection error, a user entering incorrect data, a function invoked with inaccurate values or a file not found, and many other scenarios could...

Type assertion Type assertion is used to get the underlying concrete value of the interface variable. i.(Type) this is the syntax of type assertion, where: i -> interface variable Type -> type that implements the interface Let's see an example of typ...
