https://github.com/andrewlader/go-tendo
Go application used to walk a Go project and count the legitimate packages, structs, methods and functions.
https://github.com/andrewlader/go-tendo
ast counting-objects go golang methods packages parser source-code structs
Last synced: 5 months ago
JSON representation
Go application used to walk a Go project and count the legitimate packages, structs, methods and functions.
- Host: GitHub
- URL: https://github.com/andrewlader/go-tendo
- Owner: andrewlader
- License: mit
- Created: 2018-02-13T21:59:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T17:40:12.000Z (about 4 years ago)
- Last Synced: 2024-06-21T03:15:43.963Z (almost 2 years ago)
- Topics: ast, counting-objects, go, golang, methods, packages, parser, source-code, structs
- Language: Go
- Size: 1.01 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-tendo
[](https://goreportcard.com/report/github.com/andrewlader/go-tendo)
[](https://travis-ci.org/AndrewLader/go-tendo)
[](https://codecov.io/gh/AndrewLader/go-tendo)
[](https://github.com/AndrewLader/go-tendo/blob/master/LICENSE)
Go application used to walk a Go project and report on the number of structs, methods and functions in each package.
```
██████╗ ██████╗ ████████╗███████╗███╗ ██╗██████╗ ██████╗
██╔════╝ ██╔═══██╗ ╚══██╔══╝██╔════╝████╗ ██║██╔══██╗██╔═══██╗
██║ ███╗██║ ██║█████╗██║ █████╗ ██╔██╗ ██║██║ ██║██║ ██║
██║ ██║██║ ██║╚════╝██║ ██╔══╝ ██║╚██╗██║██║ ██║██║ ██║
╚██████╔╝╚██████╔╝ ██║ ███████╗██║ ╚████║██████╔╝╚██████╔╝
╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ╚═════╝
```
### Usage
After building and installing `go-tendo` into a known path, navigate to the desired Go project and use the following command:
```
go-tendo [--log={logLevel}] {targetPath}
```
*example*
```
go-tendo --log=info ./
```
This command sets the logging level to output *info* related elements only, and inspect the source code at the target path of `./`

**Log Levels**
* *LogAll* - All output is displayed
* *LogTrace* - Trace and above (e.g., trace, info, warnings and errors) output is displayed
* *LogInfo* - Info related output and above is displayed
* *LogWarnings* - Default output is displayed along with any warnings or errors
* *LogErrors* - Default output is displayed along with any errors
### License
[MIT](https://github.com/AndrewLader/go-tendo/blob/master/LICENSE)