unixfile / gofunclist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gofunclist

gofunclist is a command-line tool that lists all functions defined in a Go package, including their full function signatures.

Installation

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.

Usage

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)

License

MIT

Thanks to ChatGPT

This tool was created with the help of ChatGPT. The creation process is saved here.

Update, sharing is now possible. Click here.

About

License:MIT License


Languages

Language:Go 100.0%