Right now you get this error: goto SKIP jumps over declaration of queryArgs
if len(s.standardDays) == 0 {
goto SKIP
}
queryArgs := []interface{}{}
//Do stuff with queryArgs
SKIP:
//Do stuff here BUT queryArgs is not used ANYWHERE from SKIP onwards
Currently I have to refactor all my code like this (including placing var err error at the top):
var queryArgs []interface{}
if len(s.standardDays) == 0 {
goto SKIP
}
queryArgs = []interface{}{}
//Do stuff with queryArgs
SKIP:
//Do stuff here BUT queryArgs is not used ANYWHERE from SKIP onwards
Right now you get this error:
goto SKIP jumps over declaration of queryArgsCurrently I have to refactor all my code like this (including placing
var err errorat the top):