Skip to content

Conversation

@ivaningrooves
Copy link

http.HandleFunc documentation was not discovered because only
first class functions were traversed when building apib documentation.

Now both first class functions and type methods are traversed.
For example:

    type WidgetController struct {}

// GetTypeWidget retrieves a single Widget
    func (* WidgetController) GetWidget(w, r) { }

`http.HandleFunc` documentation was not discovered because only
first class functions were traversed when building apib documentation.

Now both first class functions and type methods are traversed.
For example:

		type WidgetController struct {}

    // GetTypeWidget retrieves a single Widget
		func (* WidgetController) GetWidget(w, r) { }
package test

import (
"github.com/adams-sarah/test2doc/doc/parse"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go back at the bottom with a newline separating it from std lib imports

@s-mang
Copy link
Owner

s-mang commented Sep 2, 2016

Hey @ivaningrooves, I'd love to get your PR merged in. If you don't want to do my requested changes, I can do the changes myself. Would that work better for you?

cj123 added a commit to cj123/test2doc that referenced this pull request Feb 25, 2018
…info function for gorilla/mux, using Walk to find the original http handler
@matrosov-nikita
Copy link

@adams-sarah This PR seems to be abandoned. Are you planning to address issues mentioned above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants