This is totally possible, you can either use 'go tool nm' as suggest,
or 'go tool objdump', both tools can answer this question.
go tool objdump -s 'pkgname/internal' a.out
go tool nm a.out | grep 'pkgname/internal'
Be aware that testing against the shown examples, neither A() will be
present, by default go compiler will do inlining, you might want to
use //go:noinline directive.

BR.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAFEfeLw2imLsAbyXs1zDccsHERSksdxnomBiiVwS0%3DdV8hSYRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to