-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathstructs.go
More file actions
39 lines (35 loc) · 1.06 KB
/
structs.go
File metadata and controls
39 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package main
type duplicateFile struct {
ID uint32
Location string
Extension string
LineHashes []uint64
SortedUniqueHashes []uint64
}
type duplicateResult struct {
Location string `json:"path"`
TotalLines int `json:"totalLines"`
DuplicateLines int `json:"duplicateLines"`
DuplicatePercent float64 `json:"duplicatePercent"`
Matches []matchResult `json:"matches"`
DuplicateCount int `json:"-"`
}
type matchResult struct {
SourceStartLine int `json:"sourceStartLine"`
SourceEndLine int `json:"sourceEndLine"`
TargetFile string `json:"targetFile"`
TargetStartLine int `json:"targetStartLine"`
TargetEndLine int `json:"targetEndLine"`
Length int `json:"length"`
GapCount int `json:"gapCount"`
HoleCount int `json:"holeCount"`
}
type duplicateMatch struct {
SourceStartLine int
SourceEndLine int
TargetStartLine int
TargetEndLine int
Length int
GapCount int
HoleCount int
}