An early try to rewrite ThresholdCheck in GoLang