What does log.Fatal do?
log.Fatal
It exits the program. Example of func Fatal in Go (Golang) Relevant excerpt from the article:
Fatal is equivalent to Print() followed by a call to os.Exit(1).
Fatal
Print()
os.Exit(1)
It prints the log and then raises a panic.
It prints the log and then safely exits the program.
It raises a panic.