If I have the structure:
api > v1 > *.go
I would like to be able to import api.v1
and from that, reflect out any of the types defined therein that satisfy, say, http.Handler
.
I have reflect of types and methods down, but I can't seem to figure out how to just inspect anything that has a package v1
declaration and extract all types defined in there. Is this impossible to do?
Thanks!