Interacting with Ethereum Smart Contracts using Go
Now we can deploy the contract using the generated DeployWinnerTakesAll method:
addr,_,contract,err:=DeployWinnerTakesAll(auth,sim,big.NewInt(10),big.NewInt(time.Now().Add(2time.Minute).Unix()),big.NewInt(time.Now().Add(5time.Minute).Unix()))
if err != nil {
log.Fatalf("could not deploy contract: %v", err)
}