A simple CLI program that adds a tree-like structure to your README.MD file, like:
- go.mod
- helpers.go
- main.go
- structure
- Navigate to your Go code directory and run the following command to create an executable:
go build -o structure- Move the structure app into /usr/local/bin:
mv structure /usr/local/bin- Now, go to any folder and run the structure command:
structure .This will append a tree-like structure of the project to your README.md file. If README.md doesn't exist, it will create one.
Go to Go for more info.