Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandleFuncs can now be Type Methods as well. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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) { }
@@ -1,12 +1,11 @@
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