Skip to content

Commit

Permalink
add godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Oct 10, 2021
1 parent cf020f3 commit 00b2ffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gocloc.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
package gocloc

// Processor is gocloc analyzing processor
type Processor struct {
langs *DefinedLanguages
opts *ClocOptions
}

// Result defined processing result
type Result struct {
Total *Language
Files map[string]*ClocFile
Languages map[string]*Language
MaxPathLength int
}

// NewProcessor returns Processor
func NewProcessor(langs *DefinedLanguages, options *ClocOptions) *Processor {
return &Processor{
langs: langs,
opts: options,
}
}

// Analyze executes gocloc parsing for the directory of the paths argument and returns the result.
func (p *Processor) Analyze(paths []string) (*Result, error) {
total := NewLanguage("TOTAL", []string{}, [][]string{{"", ""}})
languages, err := getAllFiles(paths, p.langs, p.opts)
Expand Down

0 comments on commit 00b2ffc

Please sign in to comment.