Hi All,

I have a quick question.

Is there a way to get the list of source code files of a Go binary?

Here is one solution I got:
$ strings /home/dharani/go1.22.6.linux-amd64/go/bin/gofmt | grep "\.go$"|
sort -ur
unicode/utf8/utf8.go
unicode/tables.go
unicode/letter.go
unicode/graphic.go
unicode/digit.go
time/zoneinfo_unix.go
...

But I am wondering if there is a better way. Please let me know.

Regards
dharani

-- 
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 visit 
https://groups.google.com/d/msgid/golang-nuts/CAN-HoC%3DdZW0sRTi4P%3DPjOxupOTrPbQLf10te01OMNotfoOyLRQ%40mail.gmail.com.

Reply via email to