Panic
A panic usually means that something has unexpectedly gone wrong. Mostly we use it to fail quickly on errors that shouldn't occur during normal operation, or that we're not prepared to deal with.
easily.
Note that, unlike some languages that use exceptions to handle many errors, in Go it is idiomatic to use return values that indicate errors whenever possible.
panic(err)