Closed yukendhiran closed 2 months ago
I'm looking at the code for the answer and that is what's there and that is correct unless you want to move the if statement up. Which I would normally do.
if _, err := newUser(); err != nil {
fmt.Println(err)
return
}
I don't know but I'm getting like that at line 38 in default code and it also throw an error
it's just a small typo I wanted to infrom, btw the contents are super good
Give me a playground link with the error please. I don't see the problem and the code on the tour doesn't error.
Context: https://tour.ardanlabs.com/tour/eng/functions/2 Instead of declaration (:=) assignment (=)happen at line 38 in answer1.go