Quantcast
Channel: A Portal to a Portal
Viewing all articles
Browse latest Browse all 1850

GoLang and the unexpected exit

$
0
0
As with most of my career to-date, I'm on a learning curve ...

This time, it's GoLang, and I'm learning at a fast pace AND loving it !

I was trying to work out why my tests: -

go test ./...

or the more verbose: -

go test -v ./...

were failing with: -

exit status 1

rather than a more useful Panic message.

This helped: -

golang test exit status -1 and shows nothing

by helping me realise that my code had: -

log.Fatal

rather than: -

log.Panic

Once I fixed my code, life got a WHOLE lot better.

#LifeIsGood

#EveryDayIsASchoolDay


Viewing all articles
Browse latest Browse all 1850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>