Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for printString (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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 {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top