Go
Go
Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.Chilkat Go Downloads
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()