Sample code for 30+ languages & platforms
Go

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Go Downloads

Go
    success := false

    http := chilkat.NewHttp()
    url := "https://example.com/folder/page?lang=en&sort=asc#section2"
    fmt.Println(*http.GetUrlPath(url))

    // Output:

    // /folder/page

    http.DisposeHttp()