Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Othman (0.26 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <h4 id="Type_switches">Type switches</h4>
    
    <p>
    A type switch compares types rather than values. It is otherwise similar
    to an expression switch. It is marked by a special switch expression that
    has the form of a <a href="#Type_assertions">type assertion</a>
    using the keyword <code>type</code> rather than an actual type:
    </p>
    
    <pre>
    switch x.(type) {
    // cases
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top