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.
- Host: GitHub
- URL: https://github.com/statloc/core
- Owner: statloc
- License: other
- Created: 2025-09-27T14:11:53.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-10-31T01:30:11.000Z (8 months ago)
- Last Synced: 2026-01-13T10:19:08.737Z (5 months ago)
- Topics: core, go, go-library, open-source, package, statistics
- Language: Go
- Homepage: https://pkg.go.dev/github.com/statloc/core
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
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