Skip to content

Embedded field and promoted methods stubbed incorrectly #11

@owen-mc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions