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
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) {