Sample code for 30+ languages & platforms
Go Requires Chilkat v11.0.0+

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat Go Downloads

Go
    success := false

    email := chilkat.NewEmail()
    cert := chilkat.NewCert()

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The FindIssuer method is deprecated:

    certObj := email.FindIssuer(cert)
    if email.LastMethodSuccess() == false {
        fmt.Println(email.LastErrorText())
        email.DisposeEmail()
        cert.DisposeCert()
        return
    }

    //  ...
    //  ...

    certObj.DisposeCert()

    //  ------------------------------------------------------------------------
    //  Do the equivalent using Cert.GetIssuer.
    //  Your application creates a new, empty Cert object which is passed 
    //  in the last argument and filled upon success.

    issuerCert := chilkat.NewCert()
    success = cert.GetIssuer(issuerCert)
    if success == false {
        fmt.Println(email.LastErrorText())
        email.DisposeEmail()
        cert.DisposeCert()
        issuerCert.DisposeCert()
        return
    }


    email.DisposeEmail()
    cert.DisposeCert()
    issuerCert.DisposeCert()