From fca7e140415e7584e0645b20328a6511feedba8d Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 22 Sep 2020 20:56:03 +0200 Subject: [PATCH] Fixed golint missing comments --- pkg/analysis/string-analysis.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkg/analysis/string-analysis.go b/pkg/analysis/string-analysis.go index a61c7bf..13f3884 100644 --- a/pkg/analysis/string-analysis.go +++ b/pkg/analysis/string-analysis.go @@ -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.