Skip to content

extract: support underscore params - #1708

Open
nelsam wants to merge 1 commit into
traefik:masterfrom
nelsam:nelsam/underscore-args
Open

extract: support underscore params#1708
nelsam wants to merge 1 commit into
traefik:masterfrom
nelsam:nelsam/underscore-args

Conversation

@nelsam

@nelsam nelsam commented Sep 8, 2025

Copy link
Copy Markdown

Sometimes it makes sense to name some params in an interface, but not all of them. In these cases the name '_' comes in handy. However, it breaks the code generation in 'yaegi extract'.

This updates the logic to handle underscore names the same way it handles empty names.

Sometimes it makes sense to name some params in an interface, but
not all of them. In these cases the name '_' comes in handy.
However, it breaks the code generation in 'yaegi extract'.

This updates the logic to handle underscore names the same way
it handles empty names.
@CLAassistant

CLAassistant commented Sep 8, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants