Sample code for 30+ languages & platforms
Go

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Go Downloads

Go
    http := chilkat.NewHttp()

    // Establish 2 cache root directories.
    http.AddCacheRoot("c:/example/httpCacheA/")
    http.AddCacheRoot("c:/example/httpCacheB/")

    fmt.Println("Number of cache roots: ", http.NumCacheRoots())

    fmt.Println("1st cache root: ", *http.GetCacheRoot(0))
    fmt.Println("2nd cache root: ", *http.GetCacheRoot(1))

    // Output:

    // Number of cache roots: 2
    // 1st cache root: c:/example/httpCacheA/
    // 2nd cache root: c:/example/httpCacheB/

    http.DisposeHttp()