Skip to content

Embedded field and promoted methods stubbed incorrectly #11

Description

@owen-mc

I ran depstubber using the following comment

//go:generate depstubber -vendor github.com/revel/revel Controller,Params

The stub generated for Params is wrong in several ways: the embedded field of type url.Values has been given the name Values; various methods, like Get, which are methods on url.Values have been created as methods on Params.

I have attached the generated stub. I had to change the extension to make that work.
stub.go.txt

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions