gofunclist
is a command-line tool that lists all functions defined in a Go package, including their full function signatures.
First, clone this repository:
git clone https://github.com/unixfile/gofunclist.git
cd gofunclist
Next, build the tool:
go build main.go
Then, place the tool in your $PATH.
Run the gofunclist
command followed by the path of the Go package you want to inspect:
gofunclist $GOROOT/src/fmt
The tool will print a list of all function signatures defined in the package, in the following format:
func ((receiver type)) FunctionName(arg type) (return type)
This tool was created with the help of ChatGPT. The creation process is saved here.
Update, sharing is now possible. Click here.