#425·martini

typecheck arguments on boot-up

Author: ORESoftwareCreated Mar 4, 2020Updated Mar 4, 2020

So we have this:

go
m.Get("/cp/users/subresource/email", common.AsJson, common.RequestTimer, ctr.CreateEmail)

could we not tell martini to type check the arguments to make sure all types are represented, perhaps by returning the type of each argument from:

go
common.AsJson, common.RequestTimer,

furthermore if there are two many arguments to ctr.CreateEmail it could also barf on load?