LGTM.
Can you give an example of how the code might look like with this change?
We have x/x.go for this purpose.
Note that error handling in Go is verbose by design. It’s a common complaint that newcomers have about Go. So, let’s make changes keeping that factor in mind – that it’s not a bad thing.