我有以下網址:targetUrl := "http://google.com/foo/bar?a=1&b=2"myUrl, err := url.Parse(targetUrl)我想知道如何從中獲取最后一個路徑段(bar)myUrl.Path? 查看完整描述