Skip to content
/ core Public

[pre-released] βœ¨πŸ“Š Go package for collecting project statistic (by files, components, contributors and more). Core package for @statloc. Used both by server and CLI.

License

Notifications You must be signed in to change notification settings

statloc/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

go get github.com/statloc/core

πŸ“ Sample usage

package main

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

func main() {
    stats := core.GetStatistics("/path/to/project")
    total := stats.Items["Total"]

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

    fmt.Println(results)
}

🀝 Contributing

Follow our guide to contribute to this project

About

[pre-released] βœ¨πŸ“Š Go package for collecting project statistic (by files, components, contributors and more). Core package for @statloc. Used both by server and CLI.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks