[25] Results

Golang : io.Reader causing panic: runtime error: invalid memory address or nil pointer dereference

golang reset-io-reader panic-runtime-error invalid-memory nil-pointer-dereference

Problem :

You read a file to retrieve some data with io.Reader, then when you attempt to read the same….... read more


Golang : Reset or rewind io.Reader or io.Writer

golang io-reader io-writer seek panic-runtime-error invalid-memory nil-pointer-dereference

Problem :

You have read file with io.Reader till EOF. Or you want to rewrite a file with io.Writer again.….... read more


Golang : How To Use Panic and Recover

golang errorpanic recover

In this tutorial we will understand how panic function works and how to "interrupt and recover" from the panic. First, let's examine Panic function package….... read more


Golang : Exit, terminating or aborting a program

golang exit abort error

There are times where a controlled termination of a program is required rather than proceeding ahead. This is a quick….... read more


Golang : Concurrency and goroutine example

golang goroutine runtime GOMAXPROCS concurrency

Golang has concurrency build into the core design and this is one of the main features that attracted many veteran….... read more


Golang : Stop goroutine without channel

golang stop-goroutine runtime segmentation-fault

Writing this down here as my own reference. In case you need to stop a goroutine from further execution and….... read more


Golang : Error handling methods

golang error exception

Couple of days ago I attended a Golang meetup for the first time nearby where I live. There are developers….... read more


Golang : How to handle file size larger than available memory panic issue

golang filesize memory-limit panic http-detectcontenttype

Problem:

You are trying to convert create a slice with a size of a very large file. The file size….... read more


Advertisement