Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 4 >LESSON 3 not able to run the code

Not able to run the code. I do not understand where to apply the log and fatal
by

1 Answer

iamabhishek
Here is the correct code:

package main

import "log"

func main() {
if true {
log.Println("Going great...")
} else {
log.Fatal("Oops failed!")
}
}

Login / Signup to Answer the Question.