Since Go effectively requires source code for compilation, I think what you’re asking for is impossible as the dev can just copy the source under a different function name, including most stdlib code.
> On Jun 8, 2019, at 1:48 PM, Andrew Klager <andrew.kla...@gmail.com> wrote: > > Take a look at https://golang.org/cmd/nm/ > > > >> On Sat, Jun 8, 2019 at 1:38 PM <worthspend...@gmail.com> wrote: >> I'm looking for some type of tool or method to examine a compiled go binary >> and confirm that a list of functions is NOT included in the compiled binary. >> >> example: >> package internal >> >> func A() string { >> return "func A" >> } >> >> func B() string { >> return "func B" >> } >> >> func C() string { >> return "func C" >> } >> >> package main >> >> import "fmt" >> import "internal" >> >> func main() { >> fmt.Println(internal.A()) >> } >> >> If the above were a compiled binary, I would like to use a tool or method to >> confirm that B() and C() is NOT included in the compiled binary. >> >> Thanks... >> >> -- >> 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/20430673-7bf2-47bc-afed-cd99d88a716f%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > 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/CABn4WMVr8pg5okq3wnc%2B1xo__G50Kc0%3DYJJ5gkh81cHZ3Fa1zQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- 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/A3331340-6FBE-4DAF-971A-0822C185A6EF%40ix.netcom.com. For more options, visit https://groups.google.com/d/optout.