Interfaces and error checking golang