How to match the go struct #1984
Unanswered
congziqi77
asked this question in
Q&A
Replies: 1 comment
-
You can take a look at faq.
![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi! I am currently attempting to use ast-grep to search for structure definitions in go projects.
https://ast-grep.github.io/playground.html#eyJtb2RlIjoiQ29uZmlnIiwibGFuZyI6ImdvIiwicXVlcnkiOiIiLCJyZXdyaXRlIjoiIiwic3RyaWN0bmVzcyI6InNtYXJ0Iiwic2VsZWN0b3IiOiIiLCJjb25maWciOiJpZDogdGVzdC1mdW5jdGlvbnNcbmxhbmd1YWdlOiBnb1xucnVsZTpcbiAga2luZDogdHlwZV9kZWNsYXJhdGlvblxuICBwYXR0ZXJuOiB0eXBlICQkJCBzdHJ1Y3RcbiAgIiwic291cmNlIjoidHlwZSBBIHN0cnVjdHtcblx0XG59In0=
If I use
type $$$ struct
, it can be matched. but how to match a clear structure.i used
type A struct
, but it didn't take effect.If you could help me, I would be very grateful
Beta Was this translation helpful? Give feedback.
All reactions