Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nil (0.13 sec)

  1. doc/go_spec.html

    <a href="#Predeclared_identifiers"><code>nil</code></a>;
    that case is selected when the expression in the TypeSwitchGuard
    is a <code>nil</code> interface value.
    There may be at most one <code>nil</code> case.
    </p>
    
    <p>
    Given an expression <code>x</code> of type <code>interface{}</code>,
    the following type switch:
    </p>
    
    <pre>
    switch i := x.(type) {
    case nil:
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top