10 lines
186 B
Bash
Executable File
10 lines
186 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
if test "$#" -ne 1; then
|
|
echo "invalid arguments: usage: $0 path/to/binary"
|
|
exit 1
|
|
fi
|
|
|
|
go tool nm -size "$1" \
|
|
| awk 'NF==4 && $3=="t" {printf "%s\t\t%s\n", $2, $4}'
|