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

https://github.com/statloc/core

[pre-released] ✨📊 Go package for collecting project statistic (by files, components, contributors and more). Core package for @statloc. Used by CLI.
https://github.com/statloc/core

core go go-library open-source package statistics

Last synced: 5 months ago
JSON representation

[pre-released] ✨📊 Go package for collecting project statistic (by files, components, contributors and more). Core package for @statloc. Used by CLI.

Awesome Lists containing this project

README

          

# statloc core








### ✏️ About
- Go package for collecting project statistic (lines of code, methods, files, components, etc.)
- Core package for @statloc
- Used both by server and CLI

### ⚡ Installation
```shell
go get github.com/statloc/core
```

### 📝 Sample usage
```go
package main

import (
"github.com/statloc/core"
"fmt"
)

func main() {
stats := core.GetStatistics("/path/to/project")

result := = fmt.Sprintf(
`Statistics(total):
lines of code: %d
files: %d`,
stats.Total.LOC,
stats.Total.Files,
)

fmt.Println(results)
}

```

### 🤝 Contributing
Follow our [guide](https://github.com/statloc/core/blob/master/CONTRIBUTING.md) to contribute to this project