Skip to content

Commit fca7e14

Browse files
committed
Fixed golint missing comments
1 parent 9236f00 commit fca7e14

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pkg/analysis/string-analysis.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@ import (
1414
type AlgorithMethod uint8
1515

1616
const (
17-
Levenshtein AlgorithMethod = iota
18-
DamerauLevenshtein AlgorithMethod = iota
17+
// Levenshtein algo identifier
18+
Levenshtein AlgorithMethod = iota
19+
// DamerauLevenshtein algo identifier
20+
DamerauLevenshtein AlgorithMethod = iota
21+
// OSADamerauLevenshtein algo identifier
1922
OSADamerauLevenshtein AlgorithMethod = iota
20-
Lcs AlgorithMethod = iota
21-
Hamming AlgorithMethod = iota
22-
Jaro AlgorithMethod = iota
23-
JaroWinkler AlgorithMethod = iota
23+
// Lcs algo identifier
24+
Lcs AlgorithMethod = iota
25+
// Hamming algo identifier
26+
Hamming AlgorithMethod = iota
27+
// Jaro algo identifier
28+
Jaro AlgorithMethod = iota
29+
// JaroWinkler algo identifier
30+
JaroWinkler AlgorithMethod = iota
2431
)
2532

2633
// StringsSimilarity return a similarity index [0..1] between two strings based on given edit distance algorithm in parameter.

0 commit comments

Comments
 (0)