Why is lint giving a warning ineffectual assignment to (ineffassign)
After the following if statement, cfg is written, thus the value assigned to cfg using cfg := &utils.Config{} is never used. You are using an assignment where a declaration would do. var cfg *utils.Config …