Sample code for 30+ languages & platforms
Go

Replace Deprecated GetExpirationDt

Shows how to replace the deprecated GetExpirationDt method.

Chilkat Go Downloads

Go
    cache := chilkat.NewCache()

    // ....
    // ....

    cache_item_key := "xyz"

    // Instead of this:
    dt1 := cache.GetExpirationDt(cache_item_key)
    dt1.DisposeCkDateTime()

    // Do this:
    dt2 := chilkat.NewCkDateTime()
    dt2.SetFromRfc822(*cache.GetExpirationStr(cache_item_key))

    cache.DisposeCache()
    dt2.DisposeCkDateTime()