Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExamplePathEscape (0.11 sec)

  1. src/net/url/example_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package url_test
    
    import (
    	"encoding/json"
    	"fmt"
    	"log"
    	"net/url"
    	"strings"
    )
    
    func ExamplePathEscape() {
    	path := url.PathEscape("my/cool+blog&about,stuff")
    	fmt.Println(path)
    
    	// Output:
    	// my%2Fcool+blog&about%2Cstuff
    }
    
    func ExamplePathUnescape() {
    	escapedPath := "my%2Fcool+blog&about%2Cstuff"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.2K bytes
    - Viewed (0)
Back to top