Skip to content

Looking up ambiguous BTF types #1594

Answered by ti-mo
Ghostbaby asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure what this snippet means, but AnyTypesName is not a method on btf.Spec.

AnyTypeByName will only return an unambiguous type. AnyTypesByName will return multiple types with the same name. It's up to you to pick the one you need.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ti-mo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants