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

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Go Downloads

Go
    entry := chilkat.NewZipEntry()

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetDt method is deprecated:

    dtObj := entry.GetDt()
    if entry.LastMethodSuccess() == false {
        fmt.Println(entry.LastErrorText())
        entry.DisposeZipEntry()
        return
    }

    //  ...
    //  ...

    dtObj.DisposeCkDateTime()

    //  ------------------------------------------------------------------------
    //  Do the equivalent using FileDateTimeStr.

    dt := chilkat.NewCkDateTime()
    dt.SetFromRfc822(entry.FileDateTimeStr())

    entry.DisposeZipEntry()
    dt.DisposeCkDateTime()