code: func (r FutureGetMiningInfoResult) Receive() (*btcjson.GetMiningInfoResult, error) {
  	res, err := receiveFuture(r)
  	if err != nil {
  		return nil, err
  	}
  
  	// Unmarshal result as a getmininginfo result object.
  	var infoResult btcjson.GetMiningInfoResult
  	err = json.Unmarshal(res, &infoResult)
  	if err != nil {
  		return nil, err
  	}
  
  	return &infoResult, nil
  }
docs: // Receive waits for the response promised by the future and returns the mining
  // information.