Golang rework for ThresholdCheck