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

Transition from MailMan.GetUidls to MailMan.FetchUidls

Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.

Chilkat Go Downloads

Go
    success := false

    mailman := chilkat.NewMailMan()

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetUidls method is deprecated:

    sa := mailman.GetUidls()
    if mailman.LastMethodSuccess() == false {
        fmt.Println(mailman.LastErrorText())
        mailman.DisposeMailMan()
        return
    }

    //  ...
    //  ...

    sa.DisposeStringArray()

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

    st := chilkat.NewStringTable()
    success = mailman.FetchUidls(st)
    if success == false {
        fmt.Println(mailman.LastErrorText())
        mailman.DisposeMailMan()
        st.DisposeStringTable()
        return
    }


    mailman.DisposeMailMan()
    st.DisposeStringTable()