Skip to content

Commit

Permalink
Fixed golint missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Sep 22, 2020
1 parent 9236f00 commit fca7e14
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions pkg/analysis/string-analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ import (
type AlgorithMethod uint8

const (
Levenshtein AlgorithMethod = iota
DamerauLevenshtein AlgorithMethod = iota
// Levenshtein algo identifier
Levenshtein AlgorithMethod = iota
// DamerauLevenshtein algo identifier
DamerauLevenshtein AlgorithMethod = iota
// OSADamerauLevenshtein algo identifier
OSADamerauLevenshtein AlgorithMethod = iota
Lcs AlgorithMethod = iota
Hamming AlgorithMethod = iota
Jaro AlgorithMethod = iota
JaroWinkler AlgorithMethod = iota
// Lcs algo identifier
Lcs AlgorithMethod = iota
// Hamming algo identifier
Hamming AlgorithMethod = iota
// Jaro algo identifier
Jaro AlgorithMethod = iota
// JaroWinkler algo identifier
JaroWinkler AlgorithMethod = iota
)

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

0 comments on commit fca7e14

Please sign in to comment.