code: func ParseCSR(pemValue string) (*x509.CertificateRequest, error) {
  	// The _ result below is not an error but the remaining PEM bytes.
  	block, _ := pem.Decode([]byte(pemValue))
  	if block == nil {
  		return nil, fmt.Errorf("no PEM-encoded data found")
  	}
  
  	if block.Type != "CERTIFICATE REQUEST" {
  		return nil, fmt.Errorf("first PEM-block should be CERTIFICATE REQUEST type")
  	}
  
  	return x509.ParseCertificateRequest(block.Bytes)
  }
docs: // ParseCSR parses a CSR from a PEM-encoded value. The certificate request
  // must be the the first block in the PEM value.