Post

GoLangGoLang

I
Irshad Mohammad

Posted on 24th March 2023|39 views

0
votes

Golang Log Fatal

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

Answers
P
Aryan Sharma

Posted on 24th March 2023

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