Hi @dariopb, I've explicitly defined the service variable rather than using the short variable declaration and that seems to have resolved the issue. I'm not a GoLang expert, so I can't explain why this is the case, although, I believe it's to do with variable scope.
I've also removed the breaks from the switch case as VS Code was given out about them and I read up on it, it appears, they are not required as this occurs automatically.
Hi @dariopb, I've explicitly defined the service variable rather than using the short variable declaration and that seems to have resolved the issue. I'm not a GoLang expert, so I can't explain why this is the case, although, I believe it's to do with variable scope.
I've also removed the breaks from the switch case as VS Code was given out about them and I read up on it, it appears, they are not required as this occurs automatically.
resolve #10