import "github.com/yobert/autojson"
func NewHandler(service interface{}, methodName string) http.HandlerFunc
NewHandler uses reflection to generate an http.HandlerFunc from a service and method name
ErrorResponse will be encoded as JSON and returned if your handler has a return value of type error, with the stringified error populated.
Package autojson imports 7 packages (graph). Updated 2018-11-12. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).