Crate gengo

Source
Expand description

Gengo is a language detection library for collections of files. Currently, it supports reading from git repositories.

§Example

use gengo::{Builder, Git};
let git = Git::new("path/to/repo", "HEAD").unwrap();
let gengo = Builder::new(git).build().unwrap();
let results = gengo.analyze().unwrap();

Re-exports§

pub use analysis::Analysis;
pub use language::Language;

Modules§

analysis
language

Structs§

Builder
Builds a new Gengo instance.
Directory
A file source that reads files from a directory.
Entry
A single entry in the language statistics.
Error
Gengo
The main entry point for Gengo.
Git

Enums§

ErrorKind
The kind of error that occurred.

Traits§

FileSource
Provides files and overrides.