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

Transition from Zip.GetEntryByIndex to Zip.EntryAt

Provides instructions for replacing deprecated GetEntryByIndex method calls with EntryAt.

Chilkat Go Downloads

Go
    success := false

    zip := chilkat.NewZip()

    //  ...
    //  ...
    index := 15

    //  ------------------------------------------------------------------------
    //  The GetEntryByIndex method is deprecated:

    entryObj := zip.GetEntryByIndex(index)
    if zip.LastMethodSuccess() == false {
        fmt.Println(zip.LastErrorText())
        zip.DisposeZip()
        return
    }

    //  ...
    //  ...

    entryObj.DisposeZipEntry()

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

    ze := chilkat.NewZipEntry()
    success = zip.EntryAt(index,ze)
    if success == false {
        fmt.Println(zip.LastErrorText())
        zip.DisposeZip()
        ze.DisposeZipEntry()
        return
    }


    zip.DisposeZip()
    ze.DisposeZipEntry()