code: func parseBtcdConnectedNtfnParams(params []json.RawMessage) (bool, error) {
  	if len(params) != 1 {
  		return false, wrongNumParams(len(params))
  	}
  
  	// Unmarshal first parameter as a boolean.
  	var connected bool
  	err := json.Unmarshal(params[0], &connected)
  	if err != nil {
  		return false, err
  	}
  
  	return connected, nil
  }
docs: // parseBtcdConnectedNtfnParams parses out the connection status of btcd
  // and btcwallet from the parameters of a btcdconnected notification.