Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toResult (0.2 sec)

  1. doc/go1.17_spec.html

    <pre class="ebnf">
    ReturnStmt = "return" [ ExpressionList ] .
    </pre>
    
    <p>
    In a function without a result type, a "return" statement must not
    specify any result values.
    </p>
    <pre>
    func noResult() {
    	return
    }
    </pre>
    
    <p>
    There are three ways to return values from a function with a result
    type:
    </p>
    
    <ol>
    	<li>The return value or values may be explicitly listed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top