Re: [go-nuts] Re: go-swagger dynamic API creation

2017-03-28 Thread Kevin Conway
Having used go-swagger (https://github.com/go-swagger/go-swagger) at one point, I'd say that these YAML generators are possibly useful for generating documentation from your code. One pain point of the documentation generators, though, is that most require that I create and maintain code objects

[go-nuts] Re: go-swagger dynamic API creation

2017-03-27 Thread Matt Ho
Before writing github.com/savaki/swag, I gave goswagger a try. I think goswagger is a fantastic library with lots of useful features. However, for my own use, I found things like: var findTodos = runtime.OperationHandlerFunc(func(params interface{}) (interface{}, error) {