S SearchRSS
< BackHome
Newest questions tagged go - Stack Overflow

How to properly return specific error in Go

Studying Go now, not my 1st language. I think I faced a subtle conflict between idioms. Say I did this: //Returns context.DeadlineExceeded as error if failed because ctx timed out. func KeepAliveAttempt(cli *etcd.Client,

View original source