8000 Question about identifiers · Issue #166 · uber-go/gopatch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Question about identifiers #166
Open
@ccoVeille

Description

@ccoVeille

I keep investigating about how to use the tool (which I love BTW 🎉)

So after #165, now I would like to know how I could detect and identifier matching a patter

I would like to me be able to catch something "as simple as" famous last word ™️

@@
var f identifier that start with Test*
@@
-func f(t *testing.T) {
-   t.Helper()
+func f(t *testing.T) {
    ...
}

My idea would be to be able to do this

@@
var f identifier
@@
-func f(t *testing.T) {
+func f(t *testing.T) {
+   t.Helper()
+
    ...


@@
var f identifier that start with Test*
@@
-func f(t *testing.T) {
-   t.Helper()
+func f(t *testing.T) {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0