Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for printstring (0.41 sec)

  1. doc/go_spec.html

    case func(int) float64:
    	printFunction(i)                       // type of i is func(int) float64
    case bool, string:
    	printString("type is bool or string")  // type of i is type of x (interface{})
    default:
    	printString("don't know the type")     // type of i is type of x (interface{})
    }
    </pre>
    
    <p>
    could be rewritten:
    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top