Skip to content

Interfacer generates invalid code when package name contains hyphen #37

@paprikati

Description

@paprikati

We've tried to run interfacer against github.com/PagerDuty/go-pagerduty.Client.
When one of the function arguments is a package name, it generates:

	ListAuditRecordsPaginated(context.Context, pagerduty.ListAuditRecordsOptions, func(go-pagerduty.AuditRecord) bool) ([]pagerduty.AuditRecord, error)

however, go-pagerduty isn't a valid package name.
Would it be possible to pass args to tell interfacer which package name to use in this scenario?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions