Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SmallerUser (0.07 sec)

  1. tests/query_test.go

    		return nil
    	}); result.Error != gorm.ErrPrimaryKeyRequired {
    		t.Fatal("expected errors to have occurred, but nothing happened")
    	}
    }
    
    func TestFillSmallerStruct(t *testing.T) {
    	user := User{Name: "SmallerUser", Age: 100}
    	DB.Save(&user)
    	type SimpleUser struct {
    		ID        int64
    		Name      string
    		UpdatedAt time.Time
    		CreatedAt time.Time
    	}
    
    	var simpleUser SimpleUser
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top