code: func NewSetGenerateCmd(generate bool, genProcLimit *int) *SetGenerateCmd {
  	return &SetGenerateCmd{
  		Generate:     generate,
  		GenProcLimit: genProcLimit,
  	}
  }
docs: // NewSetGenerateCmd returns a new instance which can be used to issue a
  // setgenerate JSON-RPC command.
  //
  // The parameters which are pointers indicate they are optional.  Passing nil
  // for optional parameters will use the default value.