Introduced engine.Scrobbler

Also refactored mocks into their original packages, to avoid cyclic references. Is there a better way to have mocks in GoLang tests?
This commit is contained in:
Deluan 2016-03-16 17:48:44 -04:00
commit b660a70688
16 changed files with 156 additions and 45 deletions

View file

@ -46,6 +46,9 @@ func (c *BaseAPIController) ParamInt(param string, def int) int {
func (c *BaseAPIController) ParamBool(param string, def bool) bool {
value := def
if c.Input().Get(param) == "" {
return def
}
c.Ctx.Input.Bind(&value, param)
return value
}