Post

GoLangGoLang

I
Irshad Mohammad

Posted on 6th December 2022|23 views

0
votes

Golang Log Fatal

What is the difference between log.fatal and panic in Golang?

Answers
P
Aryan Sharma

Posted on 6th December 2022

Fatal is limited tedious than, though semantically equal to, panic. This is generally accepted that libraries must not apply panic, however, if calling log. Do not log at a fatal level, prefer instead return an error over the caller if the error works up over the main.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos