DEV Community

Discussion on: How to test methods in Go

Collapse
 
quii profile image
Chris James

Do a type assertion to check the error matches the type you hope for.