Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for notResult (0.06 sec)

  1. tests/generics_test.go

    		t.Fatalf("Scopes expected 1, got %d", len(results))
    	}
    
    	notResult, err := gorm.G[User](DB).Where("name like ?", "GenericsScopes%").Not("name = ?", "GenericsScopes1").Order("name").Find(ctx)
    	if len(notResult) != 2 {
    		t.Fatalf("expected 2 results, got %d", len(notResult))
    	} else if notResult[0].Name != "GenericsScopes2" || notResult[1].Name != "GenericsScopes3" {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. doc/go_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: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
Back to top