From 274dd03a10a421abf4aa8aa72483c674b40405ff Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Thu, 14 Oct 2021 11:52:40 +0800 Subject: [PATCH] Fix golint warnings in indexparamcheck (#9861) Signed-off-by: Xiangyu Wang --- internal/util/indexparamcheck/conf_adapter.go | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index 08466ac4c4..abeac70ebc 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -18,12 +18,25 @@ import ( ) const ( - L2 = "L2" - IP = "IP" - HAMMING = "HAMMING" - JACCARD = "JACCARD" - TANIMOTO = "TANIMOTO" - SUBSTRUCTURE = "SUBSTRUCTURE" + // L2 represents Euclidean distance + L2 = "L2" + + // IP represents inner product distance + IP = "IP" + + // HAMMING represents hamming distance + HAMMING = "HAMMING" + + // JACCARD represents jaccard distance + JACCARD = "JACCARD" + + // TANIMOTO represents tanimoto distance + TANIMOTO = "TANIMOTO" + + // SUBSTRUCTURE represents substructure distance + SUBSTRUCTURE = "SUBSTRUCTURE" + + // SUPERSTRUCTURE represents superstructure distance SUPERSTRUCTURE = "SUPERSTRUCTURE" MinNBits = 1