[27] Results

Golang : Fix image: unknown format error

golang image-dimension width height unknown-format-error decode-config

Problem :

You want to find out the dimension of an image file with image.DecodeConfig() function - to….... read more

Golang : unknown escape sequence error

golang unknown-escape-sequence error

Encountered a funky error message unknown escape sequence while working this the tutorial on how to find IP….... 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 : Convert date string to variants of time.Time type examples

golang date convert-timestamp format-date

Here are few examples on how to convert a given date of string type to equivalent time.Time type. Most newbies….... 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 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 : Smarter Error Handling with strings.Contains()

golang error-handling

In this tutorial, we will learn some simple trick with strings.Contain() function on capturing the error message and handling it according to the error message.….... read more

Golang : Clean formatting/indenting or pretty print JSON result

golang json indent clean-format


Your Golang program is producing JSON result in a single line that looks like this :

.... read more