Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleUnquote (0.2 sec)

  1. src/strconv/example_test.go

    	fmt.Printf("%q, %v\n", s, err)
    
    	// Output:
    	// "", invalid syntax
    	// "\"double-quoted string\"", <nil>
    	// "`or backquoted`", <nil>
    	// "'☺'", <nil>
    }
    
    func ExampleUnquote() {
    	s, err := strconv.Unquote("You can't unquote a string without quotes")
    	fmt.Printf("%q, %v\n", s, err)
    	s, err = strconv.Unquote("\"The string must be either double-quoted\"")
    	fmt.Printf("%q, %v\n", s, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 22:57:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top