logo-MindMajix
PostGoLangGoLang
I
Irshad Mohammad

Posted on 19th July 2024|81 views

0
votes

Golang Log Fatal

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

1 answers
Answers
P
Aryan Sharma

Posted on 19th July 2024| views

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
Name
Course *
Email *
Phone Number