An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# go-tendo

[![Go Report Card](https://goreportcard.com/badge/github.com/andrewlader/go-tendo)](https://goreportcard.com/report/github.com/andrewlader/go-tendo)
[![Build Status](https://travis-ci.org/AndrewLader/go-tendo.svg?branch=master)](https://travis-ci.org/AndrewLader/go-tendo)
[![codecov](https://codecov.io/gh/AndrewLader/go-tendo/branch/master/graph/badge.svg)](https://codecov.io/gh/AndrewLader/go-tendo)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](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 `./`

Sample Output

**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)