Go port of Nice Simple Multi-Algorithm.
Gets profitability information about algorithms and returns back the most profitable algorithm.
Algorithm names: https://www.nicehash.com/index.jsp?p=simplemultialgo#names
package main
import (
"fmt"
simplemultialgo "github.com/moncho/go-simplemultialgo"
)
func main() {
algo, err := simplemultialgo.NiceHashMultiAlgo(map[string]int{"scrypt": 1, "x11": 7, "quark": 12})
if err != nil {
panic("Run for your life!!")
}
fmt.Printf("Most profitable algo is %s, currently paying %v\n", algo.Name, algo.Paying)
}