Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleFormatBool (0.14 sec)

  1. src/strconv/example_test.go

    func ExampleCanBackquote() {
    	fmt.Println(strconv.CanBackquote("Fran & Freddie's Diner ☺"))
    	fmt.Println(strconv.CanBackquote("`can't backquote this`"))
    
    	// Output:
    	// true
    	// false
    }
    
    func ExampleFormatBool() {
    	v := true
    	s := strconv.FormatBool(v)
    	fmt.Printf("%T, %v\n", s, s)
    
    	// Output:
    	// string, true
    }
    
    func ExampleFormatFloat() {
    	v := 3.1415926535
    
    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