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
> <https://groups.google.com/d/msgid/golang-nuts/20430673-7bf2-47bc-afed-cd99d88a716f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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.

Reply via email to